From e2f66dcb6c96e65beb1acae58bd1ae3ea34f1de5 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 28 Apr 2016 14:05:37 +0100 Subject: [PATCH] Wifi --- src/freedombone-image-customise | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index e4ff4383..f4f9c1e4 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -438,15 +438,12 @@ configure_wifi() { fi if [[ $WIFI_TYPE != 'none' ]]; then - if [ ! $WIFI_PASSPHRASE ]; then - return - fi if [ ${#WIFI_PASSPHRASE} -lt 2 ]; then return fi - chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE -p $WIFI_PASSPHRASE --hotspot $HOTSPOT + chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE -p $WIFI_PASSPHRASE --hotspot $WIFI_HOTSPOT else - chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE --hotspot $HOTSPOT + chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE --hotspot $WIFI_HOTSPOT fi } @@ -574,3 +571,5 @@ configure_wifi cd / echo $"info: killing leftover processes in chroot" fuser -mvk $rootdir/. || true + +exit 0