]> git.mxchange.org Git - secure-linux-project.git/blob - encrypt/source/linuxrc
Initial import from 0.5a version.
[secure-linux-project.git] / encrypt / source / linuxrc
1 #!/bin/sh
2
3 # /proc einbinden
4 mount /proc
5
6 # insmod all modules
7 /sbin/modprobe -akv loop > /dev/null 2>&1
8 /sbin/modprobe -akv md > /dev/null 2>&1
9 /sbin/modprobe -akv xor > /dev/null 2>&1
10 /sbin/modprobe -akv raid5 > /dev/null 2>&1
11 /sbin/modprobe -akv unix > /dev/null 2>&1
12
13 # Sleep a little to wait for all output
14 /bin/sleep 3
15
16 # Output welcome message
17 cat /.welcome.msg
18
19 # Ask for username
20 USER=""
21 while test "$USER" == ""; do
22         echo "Please supply a username to continue:"
23         read USER
24         if test "$USER" != ""; then
25                 source decrypt.sh $USER
26         fi
27 done
28
29 # Remove /proc
30 umount /proc
31
32 # Pivot to the asset's root file system
33 echo "$0: Final stage - Booting original Linux system ..."
34 cd $MOUNT
35 /sbin/pivot_root . initrd
36
37 # Pass control to init
38 shift 1
39 exec chroot . /sbin/init $* <dev/console >dev/console 2>&1