mirror of
https://github.com/CopterExpress/clover.git
synced 2026-06-08 18:44:32 +00:00
image_builder: edit to HW setup at init script
This commit is contained in:
9
image_builder/scripts/init_rpi.sh
Executable file
9
image_builder/scripts/init_rpi.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo -e "\033[0;31m\033[1m$(date) | #1 Rename SSID\033[0m\033[0m"
|
||||
sudo sed -i.OLD "s/CLEVER/CLEVER-$(head -c 100 /dev/urandom | xxd -ps -c 100 | sed -e 's/[^0-9]//g' | cut -c 1-4)/g" /etc/wpa_supplicant/wpa_supplicant.conf
|
||||
|
||||
echo -e "\033[0;31m\033[1m$(date) | #2 Harware setup\033[0m\033[0m"
|
||||
/root/hardware_setup.sh
|
||||
|
||||
echo -e "\033[0;31m\033[1m$(date) | #3 End of network installation\033[0m\033[0m"
|
||||
Reference in New Issue
Block a user