source: trunk/package/base-files/files/lib/preinit/99_10_run_init @ 19331

Last change on this file since 19331 was 19331, checked in by nbd, 6 years ago

add preinit modularization work by Daniel Dickinson (cshore)

File size: 379 bytes
Line 
1#!/bin/sh
2# Copyright (C) 2006 OpenWrt.org
3# Copyright (C) 2010 Vertical Communications
4
5run_init() {
6    preinit_echo "- init -"
7    preinit_ip_deconfig
8    if [ "$pi_init_stderr_suppress" = "y" ]; then
9        exec env - PATH=$pi_init_path $pi_init_env $pi_init_cmd 2>&0
10    else
11        exec env - PATH=$pi_init_path $pi_init_env $pi_init_cmd
12    fi
13}
14
15boot_hook_add preinit_main run_init
16
Note: See TracBrowser for help on using the repository browser.