Skip to content

Commit e6bf438

Browse files
committed
ensure wifi is enabled out of the gate
1 parent e9082c7 commit e6bf438

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

init-sdcard.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ cp ~/.tmux.* $PI || true
1919
mkdir -p $PI/.ssh
2020
chmod 700 $PI/.ssh
2121
cp ~/.ssh/tve-2022.pub $PI/.ssh/authorized_keys
22-
sudo sed -i -e '/^%sudo/s/(ALL)?$/ NOPASSWD: ALL/' $MNT/rootfs/etc/sudoers
22+
sudo sed -i -e '/^%sudo/s/ALL$/NOPASSWD: ALL/' $MNT/rootfs/etc/sudoers
2323

2424
sync

sg-armv7-rpi-bookworm.pifile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,9 @@ RUN rm /etc/rc3.d/S01resize2fs_once
8686
# Change the avahi/bonjour/mDNS hostname to sgpi.local and enable advertising
8787
RUN bash -c 'sed -ir -e "/host-name/s/.*/host-name=sgpi/" -e "/publish-workstation/s/no/yes/" /etc/avahi/avahi-daemon.conf'
8888

89+
# Ensure wifi comes up unblocked
90+
RUN rfkill unblock wlan
91+
RUN rfkill unblock wifi
92+
8993
# Timestamp the Sensorgnome image so we can detect and unset clock
9094
RUN bash -c 'date +%s >/etc/sensorgnome/image-stamp'

0 commit comments

Comments
 (0)