Hi!
My old wan-start worked fine. After updating to firmware .15 I renamed it to wan-event and adapted it to consider the new parameters. But it doesn't call the "wan-event-connected.user script" anymore in its code. What is wrong with the following code of the wan-event script?
And running the above wan-event script on the command line by
trying to simulate the parameters only produces following error:
My old wan-start worked fine. After updating to firmware .15 I renamed it to wan-event and adapted it to consider the new parameters. But it doesn't call the "wan-event-connected.user script" anymore in its code. What is wrong with the following code of the wan-event script?
Code:
#!/bin/sh
if [ -z $2 ]
then
logger "Script has not received parameters, aborting."
exit 1
fi
if [ "$2" -eq "connected" ]
then
. /jffs/scripts/wan-event-connected.user
fi
And running the above wan-event script on the command line by
Code:
sh wan-event 0 connected
Code:
: connected: bad number