mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
added support for networkless configurations
This commit is contained in:
parent
88c76e9504
commit
16f67c02e0
@ -182,9 +182,8 @@ start() {
|
||||
fi
|
||||
|
||||
if [ "$eth_ok" != "ok" ] && [ "$wlan_ok" != "ok" ] && [ "$ppp_ok" != "ok" ]; then
|
||||
logger -t ethernet -s "no network connection available"
|
||||
reboot
|
||||
return 1
|
||||
logger -t ethernet -s "no network connection available"
|
||||
test "$watch_link" == "yes" && return 1 || return 0
|
||||
fi
|
||||
|
||||
if [ -n "$static_gw" ]; then
|
||||
|
@ -17,8 +17,9 @@ show_gateway() {
|
||||
}
|
||||
|
||||
show_dns() {
|
||||
dns=$(cat /etc/resolv.conf | grep nameserver | cut -d ' ' -f 2)
|
||||
test -n "$gateway" && msg_info "DNS server address is $dns"
|
||||
test -r /etc/resolv.conf || return
|
||||
dns=$(cat /etc/resolv.conf | grep nameserver | head -n 1 | cut -d ' ' -f 2)
|
||||
test -n "$dns" && msg_info "DNS server address is $dns"
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
Loading…
x
Reference in New Issue
Block a user