management_scripts/run_initlistener.sh
changeset 17 980ca72ff1f1
parent 16 d1a3476471ca
child 18 e25f710d16a2
     1.1 --- a/management_scripts/run_initlistener.sh	Tue Jul 29 11:12:10 2014 +0200
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,16 +0,0 @@
     1.4 -#!/bin/sh
     1.5 -
     1.6 -DEVICE="$1"
     1.7 -
     1.8 -encryptionprovider.py -i eth0 58081 "$DEVICE" /media/usb0
     1.9 -if [ "$?" != "0" ]
    1.10 -then
    1.11 -	# this will happen if the stick was removed
    1.12 -	exit 0
    1.13 -fi
    1.14 -
    1.15 -mkdir /var/run/usbmount/encrypted
    1.16 -/usr/bin/osecfs /etc/osecfs/osecfs_usb.cfg "/var/run/usbmount/encrypted" rw
    1.17 -
    1.18 -# now stick is encrypted and mounted. Rerun Script
    1.19 -$0 $DEVICE 
    1.20 \ No newline at end of file