mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2025-04-05 03:37:04 +01:00
commit
4b721b80b4
@ -75,7 +75,7 @@ prompt_for_mac() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Display devices with numbers
|
# Display devices with numbers
|
||||||
IFS=$'\n' read -rd '' -a device_list <<<"$devices"
|
IFS=$'\n' read -r -a device_list <<<"$devices"
|
||||||
for i in "${!device_list[@]}"; do
|
for i in "${!device_list[@]}"; do
|
||||||
echo "$((i+1)). ${device_list[$i]}"
|
echo "$((i+1)). ${device_list[$i]}"
|
||||||
done
|
done
|
||||||
@ -128,4 +128,4 @@ remove_device() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Initialize
|
# Initialize
|
||||||
main_menu
|
main_menu
|
||||||
|
@ -102,7 +102,7 @@ prompt_for_network() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Display networks with numbers
|
# Display networks with numbers
|
||||||
IFS=$'\n' read -rd '' -a network_list <<<"$networks"
|
IFS=$'\n' read -r -a network_list <<<"$networks"
|
||||||
for i in "${!network_list[@]}"; do
|
for i in "${!network_list[@]}"; do
|
||||||
ssid=$(echo "${network_list[$i]}" | awk -F: '{print $1}')
|
ssid=$(echo "${network_list[$i]}" | awk -F: '{print $1}')
|
||||||
echo "$((i+1)). SSID: $ssid"
|
echo "$((i+1)). SSID: $ssid"
|
||||||
@ -166,4 +166,4 @@ remove_network() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Initialize
|
# Initialize
|
||||||
main_menu
|
main_menu
|
||||||
|
Loading…
x
Reference in New Issue
Block a user