mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
start network-dependent services even when no active network connection is available
This commit is contained in:
parent
f748ea3e6c
commit
28cb7634c7
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user