Displaying 1 result from an estimated 1 matches for "s99runjoevpn".
2008 Sep 11
2
/etc/rc5.d
...; $DOFIL
while [ -f $DOFIL ]
do
echo y | /usr/local/bin/vpnclient connect $HOST
sleep 10
done
;;
# Reconnects in case of disconnect (in while loop)
This works. And in /etc/init.d I have a runjoevpn (which linked to
/etc/rc5.d/S99runjoevpn). It works like the others. Below, $1 is checked
(not shown here for brevity) and if it is "start" then start below is
called:
start() {
date >> /root/joe.log
/usr/bin/joevpn start &
RES=$?
return $RES...