Hotspot setup for bbb wireless

This commit is contained in:
Bob Mottram 2017-07-17 14:17:13 +01:00
parent a6c6841a13
commit 745ee6019e
1 changed files with 11 additions and 0 deletions

View File

@ -552,6 +552,17 @@ if [[ $VARIANT == 'usb' ]]; then
IMAGE_NAME=$'usb' IMAGE_NAME=$'usb'
fi fi
if [[ $VARIANT == 'beaglebonewifi' ]]; then
if [ ! $WIFI_SSID ]; then
WIFI_SSID=${PROJECT_NAME}
fi
if [ ! "$WIFI_PASSPHRASE" ]; then
WIFI_PASSPHRASE=${PROJECT_NAME}
fi
WIFI_TYPE='wpa2-psk'
WIFI_HOTSPOT='yes'
fi
# append amnesic to the image name if needed # append amnesic to the image name if needed
if [[ $AMNESIC != 'no' ]]; then if [[ $AMNESIC != 'no' ]]; then
IMAGE_NAME="${IMAGE_NAME}-amnesic" IMAGE_NAME="${IMAGE_NAME}-amnesic"