]>
Commit | Line | Data |
---|---|---|
eeb72103 | 1 | #!/bin/sh |
387bf82e | 2 | export PATH=/sbin:/bin:/usr/sbin:/usr/bin |
eeb72103 HH |
3 | exec >/dev/console 2>&1 |
4 | export TERM=linux | |
5 | export PS1='initramfs-test:\w\$ ' | |
6 | stty sane | |
7 | echo "made it to the rootfs! Powering down." | |
8 | while read dev fs fstype opts rest; do | |
9 | [ "$fstype" != "ext2" ] && continue | |
10 | echo "iscsi-OK $dev $fstype $opts" > /dev/sda | |
11 | break | |
12 | done < /proc/mounts | |
13 | #sh -i | |
14 | poweroff -f |