Bob Mottram 9 years ago
parent
commit
e2f66dcb6c
No account linked to committer's email
1 changed files with 4 additions and 5 deletions
  1. 4
    5
      src/freedombone-image-customise

+ 4
- 5
src/freedombone-image-customise View File

438
     fi
438
     fi
439
     
439
     
440
     if [[ $WIFI_TYPE != 'none' ]]; then
440
     if [[ $WIFI_TYPE != 'none' ]]; then
441
-        if [ ! $WIFI_PASSPHRASE ]; then
442
-            return
443
-        fi
444
         if [ ${#WIFI_PASSPHRASE} -lt 2 ]; then
441
         if [ ${#WIFI_PASSPHRASE} -lt 2 ]; then
445
             return
442
             return
446
         fi  
443
         fi  
447
-        chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE -p $WIFI_PASSPHRASE --hotspot $HOTSPOT
444
+        chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE -p $WIFI_PASSPHRASE --hotspot $WIFI_HOTSPOT
448
     else
445
     else
449
-        chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE --hotspot $HOTSPOT
446
+        chroot "$rootdir" ${PROJECT_NAME}-wifi -i $WIFI_INTERFACE -s $WIFI_SSID -t $WIFI_TYPE --hotspot $WIFI_HOTSPOT
450
     fi
447
     fi
451
 }
448
 }
452
 
449
 
574
 cd /
571
 cd /
575
 echo $"info: killing leftover processes in chroot"
572
 echo $"info: killing leftover processes in chroot"
576
 fuser -mvk $rootdir/. || true
573
 fuser -mvk $rootdir/. || true
574
+
575
+exit 0