From: Florian Eckert Date: Wed, 17 Jan 2024 10:00:37 +0000 (+0100) Subject: modemmanager: move shell include to the beginning of the file X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=ebc903872177437e2a0f1d2d70820bbccf7e3b22;p=openwrt-packages.git modemmanager: move shell include to the beginning of the file It is usual that the includes are listed at the beginning of the script. So let's do it that way too. Signed-off-by: Florian Eckert --- diff --git a/net/modemmanager/files/usr/sbin/ModemManager-wrapper b/net/modemmanager/files/usr/sbin/ModemManager-wrapper index 97c2a826d..5ca530b16 100644 --- a/net/modemmanager/files/usr/sbin/ModemManager-wrapper +++ b/net/modemmanager/files/usr/sbin/ModemManager-wrapper @@ -1,5 +1,7 @@ #!/bin/sh +. /usr/share/ModemManager/modemmanager.common + trap_with_arg() { func="$1" ; shift for sig ; do @@ -14,8 +16,6 @@ func_trap() { } main() { - . /usr/share/ModemManager/modemmanager.common - trap_with_arg func_trap INT TERM KILL mkdir -p "${MODEMMANAGER_RUNDIR}"