summaryrefslogtreecommitdiff
path: root/unlock
diff options
context:
space:
mode:
authorAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-13 20:29:58 -0500
committerAlex Xu (Hello71) <alex_y_xu@yahoo.ca>2020-11-13 20:29:58 -0500
commitbde1d90ae348d5459168d74790f2c34a073b7962 (patch)
treedbd96f73154437e905c3a573c15004ca4b13077f /unlock
parent84708262e532e05f422b5f7522c4719e261a31ff (diff)
downloadminitramfs-bde1d90ae348d5459168d74790f2c34a073b7962.tar.xz
minitramfs-bde1d90ae348d5459168d74790f2c34a073b7962.zip
jam unlock into one line
Diffstat (limited to 'unlock')
-rw-r--r--unlock4
1 files changed, 1 insertions, 3 deletions
diff --git a/unlock b/unlock
index 42e30d2..a5aaa70 100644
--- a/unlock
+++ b/unlock
@@ -1,5 +1,3 @@
#!/bin/sh
-root=$(findfs UUID=ec8fb072-1200-4275-9494-f6f869187806) || exit
-cryptsetup open --allow-discards "$root" root || exit
-pkill cryptsetup
+root=$(findfs UUID=ec8fb072-1200-4275-9494-f6f869187806) && cryptsetup open --allow-discards "$root" root && pkill cryptsetup