summaryrefslogtreecommitdiff
path: root/package/base-files/files/etc/preinit
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-03-03 22:32:13 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-03-03 22:32:13 +0000
commitc96e173c287dcbce1813420940e79900f030c467 (patch)
tree0ec42c4bfa21f6367f247aa3200ff9af1c3d056b /package/base-files/files/etc/preinit
parentdf228a5d999ae01431f2d2bac37e312468d8edc9 (diff)
downloadmtk-20170518-c96e173c287dcbce1813420940e79900f030c467.zip
mtk-20170518-c96e173c287dcbce1813420940e79900f030c467.tar.gz
mtk-20170518-c96e173c287dcbce1813420940e79900f030c467.tar.bz2
add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit
SVN-Revision: 6481
Diffstat (limited to 'package/base-files/files/etc/preinit')
-rwxr-xr-xpackage/base-files/files/etc/preinit3
1 files changed, 2 insertions, 1 deletions
diff --git a/package/base-files/files/etc/preinit b/package/base-files/files/etc/preinit
index 74d4e88..c60a0f8 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