2010-01-26 01:11:17 +08:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
# Copyright (C) 2010 Vertical Communications
|
|
|
|
|
|
|
|
run_init() {
|
|
|
|
preinit_echo "- init -"
|
|
|
|
preinit_ip_deconfig
|
2010-03-11 02:09:53 +08:00
|
|
|
if [ "$pi_init_suppress_stderr" = "y" ]; then
|
2010-01-26 01:11:17 +08:00
|
|
|
exec env - PATH=$pi_init_path $pi_init_env $pi_init_cmd 2>&0
|
|
|
|
else
|
|
|
|
exec env - PATH=$pi_init_path $pi_init_env $pi_init_cmd
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
boot_hook_add preinit_main run_init
|
|
|
|
|