mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 21:19:35 +00:00
init_rpi: Unblock wi-fi on first boot
This commit is contained in:
@@ -51,6 +51,9 @@ network={
|
||||
}
|
||||
EOF
|
||||
|
||||
echo_stamp "Unblocking wireless interface"
|
||||
rfkill unblock wifi
|
||||
|
||||
NEW_HOSTNAME=$(echo ${NEW_SSID} | tr '[:upper:]' '[:lower:]')
|
||||
echo_stamp "Setting hostname to $NEW_HOSTNAME"
|
||||
hostnamectl set-hostname $NEW_HOSTNAME
|
||||
|
||||
@@ -42,6 +42,7 @@ static ip_address=192.168.11.1/24
|
||||
EOF
|
||||
|
||||
echo_stamp "#2 Set wpa_supplicant country"
|
||||
|
||||
cat << EOF >> /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
country=GB
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user