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, 6 insertions, 0 deletions
diff --git a/recipes-connectivity/hostapd/hostapd/default b/recipes-connectivity/hostapd/hostapd/default
new file mode 100644
index 0000000..a274de1
--- /dev/null
+++ b/recipes-connectivity/hostapd/hostapd/default
@@ -0,0 +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} ]] || (ifdown wifi1;/opt/rs9113/onebox_util rpine0 create_vap ${DEV} ap;rfkill unblock all)"
+POSTUP="ifup wifi1"