summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Klug <john.klug@multitech.com>2018-01-12 10:44:35 -0600
committerJohn Klug <john.klug@multitech.com>2018-02-08 15:41:31 -0600
commit8a0bbf51f9f2f328405455787508da69f8a021fc (patch)
treeec881ae2f6a2b880931144ad17fbe3a16ee4bed8
parente303da326e04a3985567515c48b270eeab5174e7 (diff)
downloadmeta-mlinux-8a0bbf51f9f2f328405455787508da69f8a021fc.tar.gz
meta-mlinux-8a0bbf51f9f2f328405455787508da69f8a021fc.tar.bz2
meta-mlinux-8a0bbf51f9f2f328405455787508da69f8a021fc.zip
Only run pre-up scripts if hostapd is configured.
-rwxr-xr-xrecipes-connectivity/hostapd/hostap-daemon-2.6/init3
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."