Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
29ee6c0bd5 | ||
|
|
14bd29fb94 |
@@ -6,12 +6,22 @@ output_log="/data/auth-server.log"
|
||||
|
||||
pidfile="/run/${RC_SVCNAME}.pid"
|
||||
|
||||
start_pre() {
|
||||
ebegin "Waiting for network"
|
||||
|
||||
timeout=30
|
||||
|
||||
while [ $timeout -gt 0 ]; do
|
||||
ip route | grep -q default && break
|
||||
sleep 1
|
||||
timeout=$((timeout-1))
|
||||
done
|
||||
|
||||
ip route | grep -q default || return 1
|
||||
|
||||
eend 0
|
||||
}
|
||||
|
||||
depend() {
|
||||
need net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
while ! ip route | grep -q '^default'; do
|
||||
sleep 1
|
||||
done
|
||||
}
|
||||
|
||||
@@ -5,9 +5,19 @@ depend() {
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
while ! ip route | grep -q '^default'; do
|
||||
ebegin "Waiting for network"
|
||||
|
||||
timeout=30
|
||||
|
||||
while [ $timeout -gt 0 ]; do
|
||||
ip route | grep -q default && break
|
||||
sleep 1
|
||||
timeout=$((timeout-1))
|
||||
done
|
||||
|
||||
ip route | grep -q default || return 1
|
||||
|
||||
eend 0
|
||||
}
|
||||
|
||||
command="/usr/bin/tsdns"
|
||||
|
||||
Reference in New Issue
Block a user