diff options
author | John Klug <john.klug@multitech.com> | 2016-12-01 11:41:30 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2016-12-01 11:41:30 -0600 |
commit | 1c32f8662c4f02de9379418d35c3089750bd770a (patch) | |
tree | 24becac7322716b29742edc08eeadf800a8eff7d /recipes-connectivity/hostapd/hostap-daemon-2.4/init | |
parent | 5194efc0b80e560933daf0171e56c2b379586a08 (diff) | |
download | meta-mlinux-1c32f8662c4f02de9379418d35c3089750bd770a.tar.gz meta-mlinux-1c32f8662c4f02de9379418d35c3089750bd770a.tar.bz2 meta-mlinux-1c32f8662c4f02de9379418d35c3089750bd770a.zip |
Do not start hostapd unless configured
Diffstat (limited to 'recipes-connectivity/hostapd/hostap-daemon-2.4/init')
-rwxr-xr-x[-rw-r--r--] | recipes-connectivity/hostapd/hostap-daemon-2.4/init | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes-connectivity/hostapd/hostap-daemon-2.4/init b/recipes-connectivity/hostapd/hostap-daemon-2.4/init index 79f74b6..12ea944 100644..100755 --- a/recipes-connectivity/hostapd/hostap-daemon-2.4/init +++ b/recipes-connectivity/hostapd/hostap-daemon-2.4/init @@ -6,10 +6,16 @@ ARGS="/etc/hostapd.conf -B" test -f $DAEMON || exit 0 +[ -f /etc/default/$NAME ] && . /etc/default/$NAME + + set -e case "$1" in start) + if [ "$START_ON_BOOT" != "yes" ]; then + exit 0 + fi echo -n "Starting $DESC: " start-stop-daemon -S -x $DAEMON -- $ARGS echo "$NAME." |