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-01-12 10:44:35 -0600
commit93971a0567826e9ddba25fb72a49ca21ddf4fd5d (patch)
treee3214276f1ed008dc9dbe66535191f4c1e525759
parent0490b1845f6258ea6e782585260b27447ed92b99 (diff)
downloadmeta-mlinux-93971a0567826e9ddba25fb72a49ca21ddf4fd5d.tar.gz
meta-mlinux-93971a0567826e9ddba25fb72a49ca21ddf4fd5d.tar.bz2
meta-mlinux-93971a0567826e9ddba25fb72a49ca21ddf4fd5d.zip
Only run pre-up scripts if hostapd is configured.
-rwxr-xr-xrecipes-connectivity/hostapd/hostap-daemon-2.6/init6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes-connectivity/hostapd/hostap-daemon-2.6/init b/recipes-connectivity/hostapd/hostap-daemon-2.6/init
index bb3319b..0f10a7a 100755
--- a/recipes-connectivity/hostapd/hostap-daemon-2.6/init
+++ b/recipes-connectivity/hostapd/hostap-daemon-2.6/init
@@ -13,12 +13,12 @@ set -e
case "$1" in
start)
- if [[ -n $PREUP ]] ; then
- bash -c "$PREUP"
- fi
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
if [[ -n $POSTUP ]] ; then