mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +02:00
Fixed connectd to exit if dial on demand is used
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
etc/squid
|
||||
etc/init.d/connectd
|
||||
usr/lib/squid
|
||||
usr/sbin/squid
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user