source: trunk/package/base-files/files/etc/preinit

Last change on this file was 48678, checked in by jow, 3 months ago

base-files: honor CONFIG_TARGET_INIT_PATH

Signed-off-by: Jo-Philipp Wich <jow@…>

  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 913 bytes
Line 
1#!/bin/sh
2# Copyright (C) 2006-2016 OpenWrt.org
3# Copyright (C) 2010 Vertical Communications
4
5[ -z "$PREINIT" ] && exec /sbin/init
6
7export PATH="%PATH%"
8
9pi_ifname=
10pi_ip=192.168.1.1
11pi_broadcast=192.168.1.255
12pi_netmask=255.255.255.0
13
14fs_failsafe_ifname=
15fs_failsafe_ip=192.168.1.1
16fs_failsafe_broadcast=192.168.1.255
17fs_failsafe_netmask=255.255.255.0
18
19fs_failsafe_wait_timeout=2
20
21pi_suppress_stderr="y"
22pi_init_suppress_stderr="y"
23pi_init_path="%PATH%"
24pi_init_cmd="/sbin/init"
25
26. /lib/functions.sh
27. /lib/functions/preinit.sh
28. /lib/functions/system.sh
29
30boot_hook_init preinit_essential
31boot_hook_init preinit_main
32boot_hook_init failsafe
33boot_hook_init initramfs
34boot_hook_init preinit_mount_root
35
36for pi_source_file in /lib/preinit/*; do
37        . $pi_source_file
38done
39
40boot_run_hook preinit_essential
41
42pi_mount_skip_next=false
43pi_jffs2_mount_success=false
44pi_failsafe_net_message=false
45
46boot_run_hook preinit_main
Note: See TracBrowser for help on using the repository browser.