mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
final attempt for the night
This commit is contained in:
parent
8903d6d006
commit
320174fe53
1 changed files with 6 additions and 1 deletions
7
setup.sh
7
setup.sh
|
|
@ -291,7 +291,12 @@ sudo systemctl reload NetworkManager
|
||||||
echo "Configuring static IP for wlan0 via dhcpcd..."
|
echo "Configuring static IP for wlan0 via dhcpcd..."
|
||||||
# Ensure dhcpcd is installed
|
# Ensure dhcpcd is installed
|
||||||
sudo apt install -y dhcpcd5
|
sudo apt install -y dhcpcd5
|
||||||
# Add our static IP config, being careful not to overwrite existing settings
|
|
||||||
|
# First, remove any existing configurations for wlan0 to prevent conflicts.
|
||||||
|
# This is a more robust way to ensure our settings are applied.
|
||||||
|
sudo sed -i '/^interface wlan0/,/^\s*$/d' /etc/dhcpcd.conf
|
||||||
|
|
||||||
|
# Now, add our static IP config to the end of the file.
|
||||||
sudo tee -a /etc/dhcpcd.conf > /dev/null <<EOF
|
sudo tee -a /etc/dhcpcd.conf > /dev/null <<EOF
|
||||||
|
|
||||||
# Static IP configuration for Hachi Time AP
|
# Static IP configuration for Hachi Time AP
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue