Make a script to run AFTER the init of the Piratebox May 06, 2018 07:06PM |
Registered: 6 years ago Posts: 2 |
Re: Make a script to run AFTER the init of the Piratebox May 07, 2018 07:10PM |
Admin Registered: 13 years ago Posts: 4,680 |
/opt/piratebox/bin/hooks: hook_piratebox_start_done.sh hook_piratebox_start.sh hook_piratebox_stop_done.sh hook_piratebox_stop.sh hook_post_init.sh hook_pre_init.sh hook_pre_openwrt_init.sh
#!/bin/sh # ---- TEMPLATE ---- # Runs on every Startup after the normal init-steps are done # get config file if [ ! -f $1 ] ; then echo "Config-File $1 not found..." exit 255 fi #Load config . $1 # You can uncommend this line to see when hook is starting: # echo "------------------ Running $0 ------------------"
Re: Make a script to run AFTER the init of the Piratebox May 09, 2018 06:15PM |
Registered: 6 years ago Posts: 2 |
hook_piratebox_start_done.sh hook_piratebox_start.sh hook_piratebox_stop_done.sh hook_piratebox_stop.sh hook_post_init.sh hook_pre_init.sh hook_pre_openwrt_init.shthan give me a message in dmesg, or i'm just looking in the wrong logfile?
Re: Make a script to run AFTER the init of the Piratebox May 09, 2018 06:44PM |
Admin Registered: 13 years ago Posts: 4,680 |