Originally Posted by
Tomason
The question is:
If I want to execute a script every time the router establishes a connection (PPPoE) automaticaly or manualy, where must I put this script?
If somebody can / want to help I say THANK YOU.
Well, just do a
those are the places where you can store the script....on any linux....
be aware, when storing the script into routers flash, you must store the path to your script too: (for example)
Code:
echo /usr/sbin/yourscript >> /tmp/local/.files
chmod 755 /usr/sbin/yourscript
flashfs save
flashfs commit
flashfs enable
reboot
When storing to /opt/sbin or opt/bin just store your script, nothing else is needed.
Do not forget to make your script executeable:
[
Code:
chmod 755 /where_your_script_is/name_of_script
Thats it!
As you already have a working solution and it seems that you know already linux, it should not be a big deal.
Further, you can store your script anywhere, just make script executeable and use full path when calling your script.
Would be nice to let us know, how you got your solution working...
In case that nothing is installed according wengis howto or similar , it will be a hard task.
Have fun.....