diff options
Diffstat (limited to 'recipes-connectivity/hostapd/files/default')
-rw-r--r-- | recipes-connectivity/hostapd/files/default | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/recipes-connectivity/hostapd/files/default b/recipes-connectivity/hostapd/files/default new file mode 100644 index 0000000..8f3287d --- /dev/null +++ b/recipes-connectivity/hostapd/files/default @@ -0,0 +1,8 @@ +# set to "yes" to start hostapd on boot +START_ON_BOOT="no" +# Stuff to creat the device if needed. +DEV=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 |