[package] base-files: another empty password check fix (#10440)
[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
7 pi_ifname=
8 pi_ip=192.168.1.1
9 pi_broadcast=192.168.1.255
10 pi_netmask=255.255.255.0
11
12 fs_failsafe_ifname=
13 fs_failsafe_ip=192.168.1.1
14 fs_failsafe_broadcast=192.168.1.255
15 fs_failsafe_netmask=255.255.255.0
16
17 fs_failsafe_wait_timeout=2
18
19 pi_suppress_stderr="y"
20 pi_init_suppress_stderr="y"
21 pi_init_path="/bin:/sbin:/usr/bin:/usr/sbin"
22 pi_init_cmd="/sbin/init"
23
24 . /etc/functions.sh
25 . /lib/functions/boot.sh
26
27 boot_hook_init preinit_essential
28 boot_hook_init preinit_main
29 boot_hook_init failsafe
30 boot_hook_init initramfs
31 boot_hook_init preinit_mount_root
32
33 for pi_source_file in /lib/preinit/*; do
34 . $pi_source_file
35 done
36
37 boot_run_hook preinit_essential
38
39 pi_mount_skip_next=false
40 pi_jffs2_mount_success=false
41 pi_failsafe_net_message=false
42
43 boot_run_hook preinit_main
44
This page took 0.045183 seconds and 5 git commands to generate.