]> code.delx.au - monosys/commitdiff
reboot-no-passphrase don't reboot if cryptsetup fails
authorJames Bunton <jamesbunton@delx.net.au>
Sat, 31 Oct 2015 00:14:38 +0000 (11:14 +1100)
committerJames Bunton <jamesbunton@delx.net.au>
Sat, 31 Oct 2015 00:14:38 +0000 (11:14 +1100)
scripts/reboot-no-passphrase

index b37dee39668619f8316f4cf27718e8b378c5eb5a..bc81a9960fd6944165fc3275929b35c9c29b7bd0 100755 (executable)
@@ -23,6 +23,6 @@ if [ -z "$device_filename" ]; then
     exit 1
 fi
 
-set -x
+set -ex
 sudo cryptsetup luksAddKey "$device_filename" "$crypto_keyfile"
 sudo reboot