summaryrefslogtreecommitdiff
path: root/setup/cryptsetup.js
diff options
context:
space:
mode:
Diffstat (limited to 'setup/cryptsetup.js')
-rw-r--r--setup/cryptsetup.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/setup/cryptsetup.js b/setup/cryptsetup.js
new file mode 100644
index 0000000..7c15e59
--- /dev/null
+++ b/setup/cryptsetup.js
@@ -0,0 +1 @@
+console.log(require('child_process').execSync("( stty -echo; printf \"Passphrase: \" 1>&2; PASSWORD=\"password\"; stty echo; echo \"$PASSWORD\"; ) | ecryptfs-insert-wrapped-passphrase-into-keyring /mango/users/0/crypt/wrapped-passphrase -").toString().trim().split("[")[1].split("]")[0]); \ No newline at end of file