fixed bash/dash if issue
authorft
Thu, 21 Aug 2014 14:04:30 +0200
changeset 2139d4f181549a
parent 20 ba2be0e3015a
child 22 ad5c99d3ca48
fixed bash/dash if issue
fixed umount for encrypted devices
management_scripts/pre_init.sh
     1.1 --- a/management_scripts/pre_init.sh	Wed Aug 20 17:05:56 2014 +0200
     1.2 +++ b/management_scripts/pre_init.sh	Thu Aug 21 14:04:30 2014 +0200
     1.3 @@ -13,12 +13,12 @@
     1.4  umount /var/run/usbmount/*
     1.5  sleep 1
     1.6  rmdir /var/run/usbmount/*
     1.7 -umount ${DEVICE}*
     1.8 +umount /media/usb*
     1.9  
    1.10  # search for already encrypted volumes
    1.11  device=$(encryptionprovider.py -g)
    1.12  
    1.13 -if [ "$?" == "0" ]
    1.14 +if [ "$?" = "0" ]
    1.15  then
    1.16  	encryptionprovider.py -u $device
    1.17  fi
    1.18 \ No newline at end of file