summaryrefslogtreecommitdiff
path: root/recipes-connectivity/hostapd/hostap-daemon-2.4/init
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/hostapd/hostap-daemon-2.4/init')
-rwxr-xr-x[-rw-r--r--]recipes-connectivity/hostapd/hostap-daemon-2.4/init6
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."