mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 14:16:31 +00:00
do not watch the IP address unless IP address was present in the first plac
This commit is contained in:
parent
8757a52ea0
commit
188b810dfa
@ -92,7 +92,7 @@ start_wlan() {
|
||||
dhclient -cf "$dh_conf" $wlan
|
||||
fi
|
||||
|
||||
if [ "$ip_watch" == "yes" ]; then
|
||||
if [ "$ip_watch" == "yes" ] && ip addr show dev $wlan | grep inet &>/dev/null; then
|
||||
watch_ip $wlan &
|
||||
fi
|
||||
}
|
||||
@ -149,7 +149,7 @@ start_eth() {
|
||||
watch_eth &
|
||||
fi
|
||||
|
||||
if [ "$ip_watch" == "yes" ]; then
|
||||
if [ "$ip_watch" == "yes" ] && ip addr show dev $eth | grep inet &>/dev/null; then
|
||||
watch_ip $eth &
|
||||
fi
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user