diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-03 22:32:13 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-03-03 22:32:13 +0000 |
commit | 1ce8862ab409526a36936eb93db4e23ad92e3b79 (patch) | |
tree | 5ce3e989986e46d9b2cf1a0bcbd1adb6696ba92f /package/base-files/files/etc/preinit | |
parent | c35ce18c298ee75f599d413fb6872a0f317caeb2 (diff) |
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 |