diff options
author | Andrej Shadura <andrewsh@debian.org> | 2019-03-15 17:27:37 +0100 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2019-03-15 17:27:37 +0100 |
commit | 7f139e8f180a497dbc50020f7551a78c322ae81f (patch) | |
tree | 94dfac253e4f7e5bce6679e224f72886209d85ce /debian | |
parent | 06e09f6dd05af1d9762a783ef50fc36145b23863 (diff) |
Print the warning and exit after sourcing /lib/lsb/init-functions
Closes: #924666
Diffstat (limited to 'debian')
-rw-r--r-- | debian/hostapd.init | 8 |
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 ] |