client-connect
option.client-connect /jffs/scripts/server.sh
client-disconnect /jffs/scripts/server.sh
Use this to call your "push" script.
Code:client-connect /jffs/scripts/server.sh client-disconnect /jffs/scripts/server.sh
wan-event dynamic script
Hi folks, I've got a wan-event script that pushes to pushover, but it won't execute a curl to get my 'real ip' - am I missing something? The script runs OK on reboot, just don't get the output. If I put the environment variable wan_fake_ip, that prints OK; but can't get it to push wan_from_curl...www.snbforums.comNew firmware version check - push notification
Hi, is there a way to run a script that will send a Pushover notification whenever a new stable version is found? I have the new version check option enabled, but I don't know if it's triggered by a web login or runs periodically. If it runs periodically then it should be able to trigger a...www.snbforums.com
My noob guess isSo I found something interesting. In tweaking my Pushbullet message, I made an error such that the script didn't work. My VPN client was then not able to connect.
client-connect /jffs/scripts/notifyme.sh
has an exit code of 1 from the pushbullet command which borks the VPN/jffs/scripts/vpnconnect.sh
and within it call your /jffs/scripts/notifyme.sh &
in the background/jffs/scripts/notifyme.sh
by adding &
to the end or having an explicit exit 0
after the pushbullet command.#!/bin/sh
pushbullet_message() {
...
}
pushbullet_message &
or
#!/bin/sh
pushbullet_message(){
...
}
pushbullet_message
exit 0
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!