From 8a0bbf51f9f2f328405455787508da69f8a021fc Mon Sep 17 00:00:00 2001 From: John Klug Date: Fri, 12 Jan 2018 10:44:35 -0600 Subject: Only run pre-up scripts if hostapd is configured. --- recipes-connectivity/hostapd/hostap-daemon-2.6/init | 3 +++ 1 file changed, 3 insertions(+) (limited to 'recipes-connectivity/hostapd') diff --git a/recipes-connectivity/hostapd/hostap-daemon-2.6/init b/recipes-connectivity/hostapd/hostap-daemon-2.6/init index 12ea944..39ae389 100755 --- a/recipes-connectivity/hostapd/hostap-daemon-2.6/init +++ b/recipes-connectivity/hostapd/hostap-daemon-2.6/init @@ -16,6 +16,9 @@ case "$1" in 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 echo "$NAME." -- cgit v1.2.3