Skip to content
Snippets Groups Projects
Commit 1c660aa4 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check wifi interface exists

parent 88676079
No related branches found
No related tags found
No related merge requests found
......@@ -344,6 +344,11 @@ function networks_from_file {
exit 4
fi
if [[ $(config_param_exists "WIFI_INTERFACE") == "0" ]]; then
exit 5
fi
read_config_param "WIFI_INTERFACE"
if [ ! -f /etc/network/interfaces_original ]; then
if ! grep -q "# wifi enabled" /etc/network/interfaces; then
cp /etc/network/interfaces /etc/network/interfaces_original
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment