Update firstrun.sh

This commit is contained in:
Robert Richter 2023-01-05 14:18:08 +01:00 committed by GitHub
parent 362243f017
commit fa3fa30496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,14 +43,20 @@ slaac private
# static IP configuration: # static IP configuration:
interface eth0
static ip_address=192.168.1.20/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
interface wlan0 interface wlan0
static ip_address=192.168.179.123/24 static ip_address=192.168.179.123/24
static routers=192.168.179.8 static routers=192.168.179.8
static domain_name_servers=1.1.1.1 static domain_name_servers=1.1.1.1
DHCPCDEOF DHCPCDEOF
rm -f /boot/firstrun.sh
sed -i 's| systemd.run.*||g' /boot/cmdline.txt
# Passwort des Benutzers pi aendern # Passwort des Benutzers pi aendern
echo "pi:ganz_geheim" | sudo chpasswd echo "pi:ganz_geheim" | sudo chpasswd
# Script loeschen und cmdline.txt zuruecksetzen
rm -f /boot/firstrun.sh
sed -i 's| systemd.run.*||g' /boot/cmdline.txt
exit 0 exit 0