/etc/init.d/conf: remove unused has_net_conf() function

This commit is contained in:
Calin Crisan 2018-09-16 23:03:42 +03:00
parent 4d85421951
commit 2d9cc9000b

View File

@ -14,16 +14,3 @@ fi
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
}