Skip to content

Commit

Permalink
updated logs for network settings
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Mar 11, 2024
1 parent 47102fe commit 82879e4
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions scripts/installscripts/install-jukebox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1193,11 +1193,11 @@ wifi_settings() {
if [ "${WIFIconfig}" == "YES" ]; then
echo "Setting up wifi..."

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

echo "Setting up static ip..."
if [[ $(is_dhcpcd_enabled) == true ]]; then
echo "... for dhcpcd"
# add network with high priority
add_wireless_network "$WIFI_INTERFACE" "$WIFIssid" "$WIFIpass" 99

# DHCP configuration settings
local dhcpcd_conf="/etc/dhcpcd.conf"
#-rw-rw-r-- 1 root netdev 0 Apr 17 11:25 /etc/dhcpcd.conf
Expand All @@ -1214,6 +1214,11 @@ wifi_settings() {
fi

if [[ $(is_NetworkManager_enabled) == true ]]; then
echo "... for NetworkManager"
# add network with high priority
add_wireless_network "$WIFI_INTERFACE" "$WIFIssid" "$WIFIpass" 99

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

0 comments on commit 82879e4

Please sign in to comment.