summaryrefslogtreecommitdiff
path: root/recipes-connectivity/hostapd/hostap-daemon-2.6/default
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-connectivity/hostapd/hostap-daemon-2.6/default')
-rw-r--r--recipes-connectivity/hostapd/hostap-daemon-2.6/default4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-connectivity/hostapd/hostap-daemon-2.6/default b/recipes-connectivity/hostapd/hostap-daemon-2.6/default
index 0923a8c..afc965d 100644
--- a/recipes-connectivity/hostapd/hostap-daemon-2.6/default
+++ b/recipes-connectivity/hostapd/hostap-daemon-2.6/default
@@ -1,2 +1,6 @@
# set to "yes" to start hostapd on boot
START_ON_BOOT="no"
+# Stuff to creat the device if needed.
+DEV=wifi1
+PREUP="[[ -d /sys/class/net/${DEV} ]] || /opt/rs9113/onebox_util rpine0 create_vap ${DEV} ap"
+POSTUP="ifup wifi1"