Skip to content

Commit

Permalink
fixing setting up cmdline.txt, it was ending up empty
Browse files Browse the repository at this point in the history
  • Loading branch information
colinsauze committed Sep 4, 2023
1 parent c9e25ed commit 272c63e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion installer/setup_accesspoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ if grep -q "Raspberry" /proc/cpuinfo ; then
systemctl disable dhcpcd

#make sure rfkill doesn't disable the wifi
awk '{print $0" systemd.restore_state=0 rfkill.default_state=1"}' /boot/cmdline.txt | tee /boot/cmdline.txt
awk '{print $0" systemd.restore_state=0 rfkill.default_state=1"}' /boot/cmdline.txt > /boot/cmdline.txt.new
rm /boot/cmdline.txt
mv /boot/cmdline.txt.new /boot/cmdline.txt

else
echo "Not configuring access point mode as we aren't on a Raspberry Pi"
Expand Down

0 comments on commit 272c63e

Please sign in to comment.