summarylogtreecommitdiffstats
path: root/encrypt2.install
diff options
context:
space:
mode:
authorEugene Sovetkin2015-06-08 11:11:44 +0200
committerEugene Sovetkin2015-06-08 11:11:44 +0200
commitf82c9aa4ac2cb3cdabcbaa78b296d6ceacd71b8d (patch)
tree0428f6c23a71873379f7e2d14523a8cf142688b5 /encrypt2.install
downloadaur-f82c9aa4ac2cb3cdabcbaa78b296d6ceacd71b8d.tar.gz
Initial commit
Diffstat (limited to 'encrypt2.install')
-rw-r--r--encrypt2.install22
1 files changed, 22 insertions, 0 deletions
diff --git a/encrypt2.install b/encrypt2.install
new file mode 100644
index 000000000000..34d5c373c749
--- /dev/null
+++ b/encrypt2.install
@@ -0,0 +1,22 @@
+build ()
+{
+ grep "cryptkey_device=" /etc/encrypt2.conf > "$BUILDROOT/encrypt2.conf"
+
+ source "/etc/encrypt2.conf"
+
+ if [ -e "$BUILDROOT/encrypt2_file.list" ]; then
+ rm "$BUILDROOT/encrypt2_file.list"
+ fi
+
+ for keyfile in ${keyfiles[@]}; do
+ echo $keyfile >> "$BUILDROOT/encrypt2_file.list"
+ done
+
+ add_runscript
+}
+help ()
+{
+cat<<HELPEOF
+ Shreds keyfiles on boot
+HELPEOF
+} \ No newline at end of file