start network-dependent services even when no active network connection is available

This commit is contained in:
Calin Crisan 2017-02-09 21:45:04 +02:00
parent f748ea3e6c
commit 28cb7634c7
4 changed files with 5 additions and 5 deletions

View File

@ -29,8 +29,8 @@ test -f $conf || exit 0
test -n "$os_version" || source /etc/init.d/base test -n "$os_version" || source /etc/init.d/base
test -n "$os_debug" || source /etc/init.d/conf test -n "$os_debug" || source /etc/init.d/conf
has_net_conn || exit 0 test "$os_networkless" == "true" && exit 0
date_timeout=10 date_timeout=10
date_method=http date_method=http
date_host="google.com" date_host="google.com"

View File

@ -7,7 +7,7 @@ test -f $conf || exit 0
test -n "$os_version" || source /etc/init.d/base test -n "$os_version" || source /etc/init.d/base
test -n "$os_debug" || source /etc/init.d/conf test -n "$os_debug" || source /etc/init.d/conf
has_net_conn || exit 0 test "$os_networkless" == "true" && exit 0
start() { start() {
msg_begin "Starting sshd" msg_begin "Starting sshd"

View File

@ -5,7 +5,7 @@ test -f /etc/proftpd.conf || exit 0
test -n "$os_version" || source /etc/init.d/base test -n "$os_version" || source /etc/init.d/base
test -n "$os_debug" || source /etc/init.d/conf test -n "$os_debug" || source /etc/init.d/conf
has_net_conn || exit 0 test "$os_networkless" == "true" && exit 0
start() { start() {
msg_begin "Starting proftpd" msg_begin "Starting proftpd"

View File

@ -5,7 +5,7 @@ test -f /etc/samba/smb.conf || exit 0
test -n "$os_version" || source /etc/init.d/base test -n "$os_version" || source /etc/init.d/base
test -n "$os_debug" || source /etc/init.d/conf test -n "$os_debug" || source /etc/init.d/conf
has_net_conn || exit 0 test "$os_networkless" == "true" && exit 0
start() { start() {
msg_begin "Setting smb admin password" msg_begin "Setting smb admin password"