diff options
author | John Klug <john.klug@multitech.com> | 2018-01-12 10:44:35 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2018-02-08 15:41:31 -0600 |
commit | 8a0bbf51f9f2f328405455787508da69f8a021fc (patch) | |
tree | ec881ae2f6a2b880931144ad17fbe3a16ee4bed8 | |
parent | e303da326e04a3985567515c48b270eeab5174e7 (diff) | |
download | meta-mlinux-8a0bbf51f9f2f328405455787508da69f8a021fc.tar.gz meta-mlinux-8a0bbf51f9f2f328405455787508da69f8a021fc.tar.bz2 meta-mlinux-8a0bbf51f9f2f328405455787508da69f8a021fc.zip |
Only run pre-up scripts if hostapd is configured.
-rwxr-xr-x | recipes-connectivity/hostapd/hostap-daemon-2.6/init | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/recipes-connectivity/hostapd/hostap-daemon-2.6/init b/recipes-connectivity/hostapd/hostap-daemon-2.6/init index 12ea944..39ae389 100755 --- a/recipes-connectivity/hostapd/hostap-daemon-2.6/init +++ b/recipes-connectivity/hostapd/hostap-daemon-2.6/init @@ -16,6 +16,9 @@ case "$1" in if [ "$START_ON_BOOT" != "yes" ]; then exit 0 fi + if [[ -n $PREUP ]] ; then + bash -c "$PREUP" + fi echo -n "Starting $DESC: " start-stop-daemon -S -x $DAEMON -- $ARGS echo "$NAME." |