add failsafe support for x86-2.6 and fix mdev support for platforms using /etc/preinit
[openwrt.git] / package / base-files / files / etc / preinit
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
4 [ -e /etc/preinit.arch ] && . /etc/preinit.arch
5 mount_root ${FAILSAFE:+failsafe}
6 exec /sbin/init