- Question:
1. Where should i put the script, so that the script will run when WAN connection is up?
- I want my router to get WAN IP which start with 218 (218.xxx.xxx.xx)
- I wrote a pseudo-code for the script
-Code:
var1=`ifconfig ppp0 | grep 'addr:' | sed 's/.*addr:\([^ ]\{2,3\}\).*/\1/'`
if ('$var1'=='218') ; then
if-down
if-up
-Description: Keep redialing until get the IP which start with 218