diff options
author | Harald Hoyer <harald@redhat.com> | 2012-02-22 10:14:17 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2012-02-22 15:15:21 +0100 |
commit | 552ecca6dbf1fcbf765cedf681fdaac32eca9131 (patch) | |
tree | 608f90c3b0ded90eac427aaadacc32ec16e6ef0a /test/old.TEST-14-IMSM/test-init.sh | |
parent | 9373aec6502b601347229be6d0e12f688ae1cfb3 (diff) | |
download | dracut-552ecca6dbf1fcbf765cedf681fdaac32eca9131.tar.gz dracut-552ecca6dbf1fcbf765cedf681fdaac32eca9131.tar.bz2 dracut-552ecca6dbf1fcbf765cedf681fdaac32eca9131.zip |
Renamed all shell scripts to *.sh
Diffstat (limited to 'test/old.TEST-14-IMSM/test-init.sh')
-rwxr-xr-x | test/old.TEST-14-IMSM/test-init.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/old.TEST-14-IMSM/test-init.sh b/test/old.TEST-14-IMSM/test-init.sh new file mode 100755 index 00000000..f434f132 --- /dev/null +++ b/test/old.TEST-14-IMSM/test-init.sh @@ -0,0 +1,17 @@ +#!/bin/sh +export PATH=/sbin:/bin:/usr/sbin:/usr/bin +strstr() { [ "${1#*$2*}" != "$1" ]; } +CMDLINE=$(while read line; do echo $line;done < /proc/cmdline) +plymouth --quit +exec >/dev/console 2>&1 +echo "dracut-root-block-success" >/dev/sda +export TERM=linux +export PS1='initramfs-test:\w\$ ' +cat /proc/mdstat +[ -f /etc/fstab ] || ln -s /proc/mounts /etc/fstab +stty sane +echo "made it to the rootfs!" +strstr "$CMDLINE" "rd.shell" && sh -i +echo "Powering down." +mount -n -o remount,ro / +poweroff -f |