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:
parent
39e084ca6b
commit
ebc9038721
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
. /usr/share/ModemManager/modemmanager.common
|
||||||
|
|
||||||
trap_with_arg() {
|
trap_with_arg() {
|
||||||
func="$1" ; shift
|
func="$1" ; shift
|
||||||
for sig ; do
|
for sig ; do
|
||||||
|
@ -14,8 +16,6 @@ func_trap() {
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
. /usr/share/ModemManager/modemmanager.common
|
|
||||||
|
|
||||||
trap_with_arg func_trap INT TERM KILL
|
trap_with_arg func_trap INT TERM KILL
|
||||||
|
|
||||||
mkdir -p "${MODEMMANAGER_RUNDIR}"
|
mkdir -p "${MODEMMANAGER_RUNDIR}"
|
||||||
|
|
Loading…
Reference in a new issue