summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-18 13:01:49 +0200
committerRaindropsSys <contact@minteck.org>2023-06-18 13:01:49 +0200
commit4480e889a967e571e89eb312b7ead883b827ed28 (patch)
tree7da95d791b6c56e514edef7cccc75f6c88929d7c /setup
parent391ed3d1afa0334390df24af3f1ab13cf7066a84 (diff)
downloadkirinos-4480e889a967e571e89eb312b7ead883b827ed28.tar.gz
kirinos-4480e889a967e571e89eb312b7ead883b827ed28.tar.bz2
kirinos-4480e889a967e571e89eb312b7ead883b827ed28.zip
Updated 3 files and added 11 files (automated)
Diffstat (limited to 'setup')
-rw-r--r--setup/cryptsetup.js1
-rw-r--r--setup/unwraptest.js1
2 files changed, 2 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
diff --git a/setup/unwraptest.js b/setup/unwraptest.js
new file mode 100644
index 0000000..c60f886
--- /dev/null
+++ b/setup/unwraptest.js
@@ -0,0 +1 @@
+console.log(require('child_process').execSync('echo "password" | ecryptfs-unwrap-passphrase /mango/users/0/crypt/wrapped-passphrase').toString().trim().split("\n")[1]); \ No newline at end of file