Skip to content

Commit

Permalink
Add fix_wifi as hotfix for Bullseye
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
introt committed Mar 15, 2022
1 parent fac1ada commit d3bba53
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions headless-raspi-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function execute_these_steps {
mk_mnt
mount_disk
enable_wifi
fix_wifi # see #2; bullseye seems to need this to reliably connect
enable_ssh
generate_keys # you can skip this- just remember to point KEY_FILE to your existing key
backup_default_sshd_config
Expand Down Expand Up @@ -169,6 +170,11 @@ network={
}" | "$PRIV" tee "$MOUNT"/boot/wpa_supplicant.conf
}

function fix_wifi {
echo "[] fix_wifi"
echo "console=serial0,115200 console=tty1 root=PARTUUID=e72b8fd1-02 rootfstype=ext4 fsck.repair=yes rootwait quiet init=/usr/lib/raspi-config/init_resize.sh systemd.restore_state=0 rfkill.default_state=1" | "$PRIV" tee "$MOUNT"/boot/cmdline.txt
}

function enable_ssh {
echo "[] enable ssh"
"$PRIV" touch "$MOUNT"/boot/ssh
Expand Down

0 comments on commit d3bba53

Please sign in to comment.