diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-03-03 22:32:13 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-03-03 22:32:13 +0000 |
commit | 95d20db041eb1ae1c813abe6daa92210b8fb95ed (patch) | |
tree | 5ce3e989986e46d9b2cf1a0bcbd1adb6696ba92f /package/base-files/files/etc/preinit | |
parent | 75f543cfc68ec59848722fbd6a594c11f7bb99c4 (diff) | |
download | upstream-95d20db041eb1ae1c813abe6daa92210b8fb95ed.tar.gz upstream-95d20db041eb1ae1c813abe6daa92210b8fb95ed.tar.bz2 upstream-95d20db041eb1ae1c813abe6daa92210b8fb95ed.zip |
add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@6481 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/base-files/files/etc/preinit')
-rwxr-xr-x | package/base-files/files/etc/preinit | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit index 74d4e88892..c60a0f850f 100755 --- a/package/base-files/files/etc/preinit +++ b/package/base-files/files/etc/preinit @@ -1,5 +1,6 @@ #!/bin/sh # Copyright (C) 2006 OpenWrt.org export PATH=/bin:/sbin:/usr/bin:/usr/sbin -mount_root +[ -e /etc/preinit.arch ] && . /etc/preinit.arch +mount_root ${FAILSAFE:+failsafe} exec /sbin/init |