Skip to content

Commit

Permalink
Possible network fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chiefwigms committed Jul 20, 2020
1 parent 13217be commit a3c101e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/pi/firstboot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ AP_PASS="PICOBREW"
# Enable root login
#sed -i 's/.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config

# Have Name Service Switch use DNS
# On Boot:
# hosts: files mdns4_minimal [NOTFOUND=return] dns
sed -i 's/\(.*hosts:.*\) \[.*\]\(.*\)/\1\2/' /etc/nsswitch.conf

# Enable ssh
touch /boot/ssh

Expand Down Expand Up @@ -341,6 +346,11 @@ read only = no
EOF
service smbd restart

# Have Name Service Switch use DNS
# After resolve install:
# hosts: files resolve [!UNAVAIL=return] dns
sed -i 's/\(.*hosts:.*\) \[.*\]\(.*\)/\1\2/' /etc/nsswitch.conf

# Startup Script
sed -i 's/exit 0//g' /etc/rc.local
cat >> /etc/rc.local <<EOF
Expand Down

0 comments on commit a3c101e

Please sign in to comment.