[package] base/block-extroot, base/block-mount: Modified preinit and block-extroot and
[openwrt.git] / package / base-files / files / etc / preinit
1 #!/bin/sh
2 # Copyright (C) 2006 OpenWrt.org
3 # Copyright (C) 2010 Vertical Communications
4
5 export PATH=/bin:/sbin:/usr/bin:/usr/sbin
6 . /etc/diag.sh
7
8 pi_ifname=
9 pi_ip=192.168.1.1
10 pi_broadcast=192.168.1.255
11 pi_netmask=255.255.255.0
12
13 fs_failsafe_ifname=
14 fs_failsafe_ip=192.168.1.1
15 fs_failsafe_broadcast=192.168.1.255
16 fs_failsafe_netmask=255.255.255.0
17
18 fs_failsafe_wait_timeout=2
19
20 pi_suppress_stderr="y"
21 pi_init_suppress_stderr="y"
22 pi_init_path="/bin:/sbin:/usr/bin:/usr/sbin"
23 pi_init_cmd="/sbin/init"
24
25 . /etc/functions.sh
26 . /lib/functions/boot.sh
27
28 boot_hook_init preinit_essential
29 boot_hook_init preinit_main
30 boot_hook_init failsafe
31 boot_hook_init initramfs
32 boot_hook_init preinit_mount_root
33
34 for pi_source_file in /lib/preinit/*; do
35 . $pi_source_file
36 done
37
38 boot_run_hook preinit_essential
39
40 pi_mount_skip_next=false
41 pi_jffs2_mount_success=false
42 pi_failsafe_net_message=false
43
44 boot_run_hook preinit_main
45
This page took 0.039915 seconds and 5 git commands to generate.