From 2d9cc9000bf1e22818f268055ab5ea943711c719 Mon Sep 17 00:00:00 2001 From: Calin Crisan Date: Sun, 16 Sep 2018 23:03:42 +0300 Subject: [PATCH] /etc/init.d/conf: remove unused has_net_conf() function --- board/common/overlay/etc/init.d/conf | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/board/common/overlay/etc/init.d/conf b/board/common/overlay/etc/init.d/conf index fd1afc129c..39abf427ae 100644 --- a/board/common/overlay/etc/init.d/conf +++ b/board/common/overlay/etc/init.d/conf @@ -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 -} -