add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit

SVN-Revision: 6481
This commit is contained in:
Felix Fietkau
2007-03-03 22:32:13 +00:00
parent df228a5d99
commit c96e173c28
5 changed files with 30 additions and 13 deletions

View File

@@ -0,0 +1,2 @@
mount -t proc none /proc
grep 'failsafe=' /proc/cmdline && export FAILSAFE=true

View File

@@ -9,3 +9,7 @@ root (hd0,0)
kernel /boot/vmlinuz @CMDLINE@ noinitrd console=ttyS0,@BAUDRATE@n8 reboot=bios
boot
title OpenWrt (failsafe)
root (hd0,0)
kernel /boot/vmlinuz failsafe=true @CMDLINE@ noinitrd console=ttyS0,@BAUDRATE@n8 reboot=bios
boot