Include the architecture specific gpio file for now
[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 . /etc/diag.sh
5
6 failsafe() {
7 lock /tmp/.failsafe
8 ash --login
9 }
10
11 mount none /proc -t proc
12 mount none /sys -t sysfs
13
14 [ -e /etc/preinit.arch ] && . /etc/preinit.arch
15
16 set_state preinit
17
18 mount_root ${FAILSAFE:+failsafe}
19
20 eval ${FAILSAFE:+failsafe}
21 lock -w /tmp/.failsafe
22
23 exec /sbin/init
This page took 0.041273 seconds and 5 git commands to generate.