Butterfly Bones
Very Senior Member
See two error lines.
Here are those two again.
vpnclient1-route-pre-down
vpnclient1-route-up
Code:
May 12 10:48:03 openvpn-event[31845_***DEBUG]: Error: Address /jffs/scripts/vpnclient1-route-pre-down is invalid
May 12 10:48:17 openvpn-event[32176_***DEBUG]: Error: Address /jffs/scripts/vpnclient1-route-up is invalid
vpnclient1-route-pre-down
Code:
#!/bin/sh
set -x
(
MYROUTER=$(nvram get computer_name)
if [ -d "/tmp/mnt/"$MYROUTER ]; then
MOUNT="/tmp/mnt/"$MYROUTER
else
MOUNT="/tmp"
fi
LOCKFILE=$MOUNT"/vpnclient"$VPN_ID"-monitor"
if [ -z "$(grep "NOKILL" $LOCKFILE)" ];then
PID=$(cat $LOCKFILE)
[ "$PID" != "NOKILL" ] && kill $PID
rm $LOCKFILE
logger -st "($(basename $0))" $$ "VPN Failover Monitor self-destruct requested....." $LOCKFILE "RC="$?
fi
) 2>&1 | logger -st $(basename $0)"[$$_***DEBUG]"
Code:
#!/bin/sh
set -x
(
VPN_ID=${dev:4:1}
sh /jffs/scripts/VPN_Failover.sh "$VPN_ID" "delay=60" &
) 2>&1 | logger -st $(basename $0)"[$$_***DEBUG]"