summaryrefslogtreecommitdiff
path: root/recipes-connectivity/hostapd/hostapd/default
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/hostapd/hostapd/default')
-rw-r--r--recipes-connectivity/hostapd/hostapd/default6
1 files changed, 4 insertions, 2 deletions
diff --git a/recipes-connectivity/hostapd/hostapd/default b/recipes-connectivity/hostapd/hostapd/default
index a274de1..8f3287d 100644
--- a/recipes-connectivity/hostapd/hostapd/default
+++ b/recipes-connectivity/hostapd/hostapd/default
@@ -2,5 +2,7 @@
START_ON_BOOT="no"
# Stuff to creat the device if needed.
DEV=wifi1
-PREUP="[[ -d /sys/class/net/${DEV} ]] || (ifdown wifi1;/opt/rs9113/onebox_util rpine0 create_vap ${DEV} ap;rfkill unblock all)"
-POSTUP="ifup wifi1"
+if [[ -x /opt/rs9113/onebox_util ]] ; then
+ PREUP="[[ -d /sys/class/net/${DEV} ]] || (ifdown ${DEV};/opt/rs9113/onebox_util rpine0 create_vap ${DEV} ap;rfkill unblock all)"
+ POSTUP="ifup ${DEV}"
+fi