File: mount-ecryptfs.expect

package info (click to toggle)
encfs 1.9.5-3
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 13,560 kB
  • sloc: cpp: 77,790; python: 9,665; xml: 3,888; sh: 995; perl: 866; makefile: 513; ansic: 213; exp: 16; sed: 16
file content (22 lines) | stat: -rw-r--r-- 546 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/expect -f

# Passed by controlling process via "-c" 
#spawn mount -t ecryptfs ecryptfs_ciphertext ecryptfs_plaintext

expect "Selection: "
send "1\n"
expect "Passphrase: "
send "test\n"
expect "Selection \\\[aes\\\]: "
send "aes\n"
expect "Selection \\\[16\\\]: "
send "16\n"
expect "Enable plaintext passthrough (y/n) \\\[n\\\]: "
send "n\n"
expect "Enable filename encryption (y/n) \\\[n\\\]: "
send "y\n"
# Filename Encryption Key (FNEK) Signature [d395309aaad4de06]: 
expect "\\\]: "
send "\n"
expect "Mounted eCryptfs"
send_user "\n"