Fixed connectd to exit if dial on demand is used

This commit is contained in:
Maniacikarus
2008-08-26 20:43:51 +02:00
parent 4c1bf0c9a9
commit 32e19e9c9c
2 changed files with 104 additions and 99 deletions

View File

@@ -1,3 +1,4 @@
etc/squid
etc/init.d/connectd
usr/lib/squid
usr/sbin/squid

View File

@@ -18,6 +18,10 @@ if [ ! $HOLDOFF ]; then
HOLDOFF=30
fi
if [ "$RECONNECTION" = "dialondemand" ]; then
exit 0
fi
msg_log () {
logger -t $(basename $0)[$$] $*
}
@@ -78,7 +82,7 @@ case "$1" in
sleep ${HOLDOFF}
fi
/etc/rc.d/init.d/network start red >/dev/tty12 2>&1 </dev/tty12 &
/etc/rc.d/init.d/network start red &
;;
reconnect)