mirror of
https://github.com/openwrt/packages.git
synced 2026-04-15 10:51:55 +00:00
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 <fe@dev.tdt.de>
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user