summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/grub-scripts/files/grub-md5-crypt.sh')
-rwxr-xr-xapp-admin/grub-scripts/files/grub-md5-crypt.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/app-admin/grub-scripts/files/grub-md5-crypt.sh b/app-admin/grub-scripts/files/grub-md5-crypt.sh
new file mode 100755
index 0000000..a9c1edb
--- /dev/null
+++ b/app-admin/grub-scripts/files/grub-md5-crypt.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+/sbin/grub --batch --device-map=/dev/null <<-EOF | grep '^Encrypted: ' | sed 's/^Encrypted: //'
+ md5crypt
+ $(cat)
+ quit
+ EOF