blob: 1fc39ab50b24b60b926cc12c05e80cf1b94b6622 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
#!/usr/bin/perl
use Term::ReadKey;
print "This program is used to read in the key for ECFS\n".
"This avoids that your key shows up in .history-file\n".
"since ECFS is started like 'insmod ecfs_key=blah'\n\n".
"You are now prompted for the key. Mount ECFS partitions like\n".
"'mount -t ecfs /dev/fd0 /mnt' afterwards. Remember that mmap()\n".
"is not supported by ECFS.\n\n".
"Also make sure ecfs.o is in apropriate /lib/modules/... location.\n\n";
$p1 = "X";
$p2 = "Y";
ReadMode('noecho');
while ($p1 ne $p2) {
print "Key: ";
$p1 = ReadLine(0);
print "\n(again): ";
$p2 = ReadLine(0);
print "\n";
chop($p1); chop($p2);
}
ReadMode('normal');
exec "insmod", "ecfs", "ecfs_key=$p1";
|