Skip to content

Commit

Permalink
fix: escape vars for adding network
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Apr 15, 2024
1 parent c5422a8 commit 9d2a334
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/installscripts/install-jukebox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ wifi_settings() {
sudo chmod 664 "${wpa_supplicant_conf}"

# add network with high priority
add_wireless_network "$WIFI_INTERFACE" "$WIFIssid" "$WIFIpass" 99
add_wireless_network "$(_escape_for_shell "$WIFI_INTERFACE")" "$(_escape_for_shell "$WIFIssid")" "$(_escape_for_shell "$WIFIpass")" 99

# DHCP configuration settings
local dhcpcd_conf="/etc/dhcpcd.conf"
Expand All @@ -1174,7 +1174,7 @@ wifi_settings() {
if [[ $(is_NetworkManager_enabled) == true ]]; then
echo "... for NetworkManager"
# add network with high priority
add_wireless_network "$WIFI_INTERFACE" "$WIFIssid" "$WIFIpass" 99
add_wireless_network "$(_escape_for_shell "$WIFI_INTERFACE")" "$(_escape_for_shell "$WIFIssid")" "$(_escape_for_shell "$WIFIpass")" 99

sudo nmcli connection modify "$WIFIssid" ipv4.method manual ipv4.address "$WIFIip"/24 ipv4.gateway "$WIFIipRouter" ipv4.dns "$WIFIipRouter $wifiExtDNS"
fi
Expand Down

0 comments on commit 9d2a334

Please sign in to comment.