View Full Version : Edit /init scripts
How can I edit my /init scripts? F.e. /init/httpserver.
Copy /init/functions and /init/httpserver to /usr/local/init/, i.e.
cp /init/functions /usr/local/init/functions
cp /init/httpserver /usr/local/init/httpserver
Edit /usr/local/init/functions and replace call to /init/httpserver to /usr/local/init/httpserver.
Edit /usr/local/init/httpserver in the way you like also it's a good idea to remove "echo ... > watchdog.conf" from this file.
commit changes like this
flashfs save
flashfs commit
flashfs enable
If you was careful enough, then on the next boot you will got changed things, otherwise wl500g will continously rebooting and you will need to follow instructions posted with firmware. :D
and what can i do, when i like to change /init/firewall?
do i need to change every file whitch calls /init/firewall, so that it runs /usr/local/init/firewall ???
For firewall stuff it's better just to write /usr/local/init/post-firewall script. /init/firewall calls it at the end.