You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
493 B
18 lines
493 B
![]()
16 years ago
|
#!/bin/sh
|
||
![]()
15 years ago
|
export PATH=/sbin:/bin:/usr/sbin:/usr/bin
|
||
![]()
14 years ago
|
strstr() { [ "${1#*$2*}" != "$1" ]; }
|
||
|
CMDLINE=$(while read line; do echo $line;done < /proc/cmdline)
|
||
|
plymouth --quit
|
||
![]()
16 years ago
|
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
|
||
![]()
14 years ago
|
echo "made it to the rootfs!"
|
||
|
strstr "$CMDLINE" "rd.shell" && sh -i
|
||
|
echo "Powering down."
|
||
![]()
16 years ago
|
mount -n -o remount,ro /
|
||
|
poweroff -f
|