summaryrefslogtreecommitdiffstats
path: root/package/base-files/brcm-2.4/etc/preinit
blob: fb13e107e5c172fa9ac27ec8ceffd8590826eef5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh
# Copyright (C) 2006 OpenWrt.org

export PATH=/bin:/sbin:/usr/bin:/usr/sbin
mount none /proc -t proc

[ -f /etc/preinit.arch ] && . /etc/preinit.arch
[ -z "$FAILSAFE" ] || {
	echo /bin/true > /proc/sys/kernel/hotplug
	telnetd -l /bin/login <> /dev/null 2>&1
}
mount_root ${FAILSAFE:+failsafe}
exec /sbin/init