2010-01-25 17:11:17 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
# Copyright (C) 2010 Vertical Communications
|
|
|
|
|
|
|
|
run_init() {
|
|
|
|
preinit_echo "- init -"
|
|
|
|
preinit_ip_deconfig
|
2010-03-10 18:09:53 +00:00
|
|
|
if [ "$pi_init_suppress_stderr" = "y" ]; then
|
2010-01-25 17:11:17 +00: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
|
|
|
|
|