diff options
author | John Klug <john.klug@multitech.com> | 2017-11-30 16:40:03 -0600 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2017-11-30 16:41:01 -0600 |
commit | 7ff6d720b2c531494b0ac8e4fc8b386565c65d6f (patch) | |
tree | bbaf3e6e70508f542c27ce987fa10721875c1099 /recipes-connectivity | |
parent | 3efbbeb47271d42135243f2609a52905eee99ee7 (diff) | |
download | meta-mlinux-7ff6d720b2c531494b0ac8e4fc8b386565c65d6f.tar.gz meta-mlinux-7ff6d720b2c531494b0ac8e4fc8b386565c65d6f.tar.bz2 meta-mlinux-7ff6d720b2c531494b0ac8e4fc8b386565c65d6f.zip |
Preserve wifi and bluetooth settings during upgrade.
Diffstat (limited to 'recipes-connectivity')
-rw-r--r-- | recipes-connectivity/hostapd/hostap-daemon-2.6/default | 4 | ||||
-rwxr-xr-x | recipes-connectivity/hostapd/hostap-daemon-2.6/init | 6 |
2 files changed, 10 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" diff --git a/recipes-connectivity/hostapd/hostap-daemon-2.6/init b/recipes-connectivity/hostapd/hostap-daemon-2.6/init index 12ea944..bb3319b 100755 --- a/recipes-connectivity/hostapd/hostap-daemon-2.6/init +++ b/recipes-connectivity/hostapd/hostap-daemon-2.6/init @@ -13,11 +13,17 @@ set -e case "$1" in start) + if [[ -n $PREUP ]] ; then + bash -c "$PREUP" + fi if [ "$START_ON_BOOT" != "yes" ]; then exit 0 fi echo -n "Starting $DESC: " start-stop-daemon -S -x $DAEMON -- $ARGS + if [[ -n $POSTUP ]] ; then + bash -c "$POSTUP" + fi echo "$NAME." ;; stop) |