Unverified Commit 5b5d296d authored by Igor Pečovnik's avatar Igor Pečovnik Committed by GitHub
Browse files

Merge pull request #27 from g-provost/patch-1

Update debian-config-functions-network
parents b72ddca4 5e54adf4
...@@ -556,7 +556,7 @@ function select_default_interface () ...@@ -556,7 +556,7 @@ function select_default_interface ()
for i in "${ADAPTER[@]}" for i in "${ADAPTER[@]}"
do do
local IPADDR=$(ip -4 addr show dev ${i[0]} | awk '/inet/ {print $2}' | cut -d'/' -f1) local IPADDR=$(ip -4 addr show dev ${i[0]} | awk '/inet/ {print $2}' | cut -d'/' -f1)
[[ -n $IPADDR && $IPADDR != "172.24.1.1" ]] && LIST+=( "${i[0]//[[:blank:]]/}" "${IPADDR}" ) [[ $IPADDR != "172.24.1.1" ]] && LIST+=( "${i[0]//[[:blank:]]/}" "${IPADDR}" )
done done
LIST_LENGHT=$((${#LIST[@]}/2)); LIST_LENGHT=$((${#LIST[@]}/2));
if [ "$LIST_LENGHT" -eq 0 ]; then if [ "$LIST_LENGHT" -eq 0 ]; then
...@@ -620,4 +620,4 @@ function connect_bt_interface () ...@@ -620,4 +620,4 @@ function connect_bt_interface ()
fi fi
fi fi
} }
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment