Unverified Commit c109126b authored by Aristo Chen's avatar Aristo Chen Committed by GitHub
Browse files

Fix issue for selecting network interface (#114)

parent 0112fdc5
......@@ -575,7 +575,7 @@ function select_interface ()
{
IFS=$'\r\n'
GLOBIGNORE='*'
local ADAPTER=($(nmcli device status | grep ethernet | awk '{ print $1 }' | grep -v lo))
local ADAPTER=($(nmcli device status | awk '{ print $1 }' | grep -v lo | tail -n +2))
local LIST=()
for i in "${ADAPTER[@]}"
do
......@@ -596,7 +596,6 @@ function select_interface ()
--menu "" $((6+${LIST_LENGTH})) 74 14 "${LIST[@]}" 2>&1 1>&3)
exec 3>&-
fi
}
......
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