mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 21:26:36 +00:00
/etc/init.d/conf: remove unused has_net_conf() function
This commit is contained in:
parent
4d85421951
commit
2d9cc9000b
@ -14,16 +14,3 @@ fi
|
|||||||
|
|
||||||
source $_conf
|
source $_conf
|
||||||
|
|
||||||
has_net_conn() {
|
|
||||||
test "$os_networkless" == "true" && return 1
|
|
||||||
|
|
||||||
addr_eth=$(ip addr show dev $os_eth 2>/dev/null | grep inet | tr -s ' ' | sed -r 's/^\s+//' | cut -d ' ' -f 2)
|
|
||||||
addr_wlan=$(ip addr show dev $os_wlan 2>/dev/null | grep inet | tr -s ' ' | sed -r 's/^\s+//' | cut -d ' ' -f 2)
|
|
||||||
|
|
||||||
if [ -n "$addr_eth" ] || [ -n "$addr_wlan" ]; then
|
|
||||||
return 0
|
|
||||||
else
|
|
||||||
return 1
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user