summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
Diffstat (limited to 'debian')
-rw-r--r--debian/hostapd.init8
1 files changed, 4 insertions, 4 deletions
diff --git a/debian/hostapd.init b/debian/hostapd.init
index 6151f22..e9a2fc4 100644
--- a/debian/hostapd.init
+++ b/debian/hostapd.init
@@ -25,16 +25,16 @@ PIDFILE=/run/hostapd.pid
[ -s "$DAEMON_DEFS" ] && . /etc/default/hostapd
[ -n "$DAEMON_CONF" ] || exit 0
+DAEMON_OPTS="-B -P $PIDFILE $DAEMON_OPTS $DAEMON_CONF"
+
+. /lib/lsb/init-functions
+
if [ ! -r "$DAEMON_CONF" ]
then
log_action_msg "No hostapd config found, not starting hostapd."
exit 0
fi
-DAEMON_OPTS="-B -P $PIDFILE $DAEMON_OPTS $DAEMON_CONF"
-
-. /lib/lsb/init-functions
-
case "$1" in
start)
if [ "$DAEMON_CONF" != /etc/hostapd/hostapd.conf ]