truecrypt_scripts/truecrypt_init.sh
changeset 17 980ca72ff1f1
parent 16 d1a3476471ca
child 25 25581dcb9e62
     1.1 --- a/truecrypt_scripts/truecrypt_init.sh	Tue Jul 29 11:12:10 2014 +0200
     1.2 +++ b/truecrypt_scripts/truecrypt_init.sh	Mon Aug 18 16:08:34 2014 +0200
     1.3 @@ -19,13 +19,13 @@
     1.4  sendInfoNotification ()
     1.5  {
     1.6  	MESSAGE="$1"
     1.7 -	wget -q -T 3 -t 1 -O /dev/null http://$(getRemoteIp):8090/password?msgtype=information&text=$MESSAGE
     1.8 +	wget -q -T 3 -t 1 -O /dev/null "http://$(getRemoteIp):8090/notification?msgtype=information&text=$MESSAGE"
     1.9  }
    1.10  
    1.11  sendErrorNotification ()
    1.12  {
    1.13  	MESSAGE="$1"
    1.14 -	wget -q -T 3 -t 1 -O /dev/null http://$(getRemoteIp):8090/password?msgtype=critical&text=$MESSAGE
    1.15 +	wget -q -T 3 -t 1 -O /dev/null "http://$(getRemoteIp):8090/notification?msgtype=critical&text=$MESSAGE"
    1.16  }
    1.17  
    1.18  
    1.19 @@ -41,9 +41,6 @@
    1.20  #DEVICE="${DEVICE:0:8}" the bash way does not work in dash -.-
    1.21  DEVICE="$(echo "$DEVICE" | awk '{print substr($1,0,9)}')"
    1.22  
    1.23 -# make sure the device is not mounted (always run the init_manger script here!)
    1.24 -init_manager.sh "$DEVICE"
    1.25 -
    1.26  sendInfoNotification "Encrypt device"
    1.27  if [ -z "$KEYFILE" ]
    1.28  then