Updated rc.local to call github script
This commit is contained in:
parent
a926253c30
commit
157da13260
47
rc.local
47
rc.local
|
@ -12,29 +12,32 @@ echo STARTING PINEBOOK IMAGING IN 5 SECONDS
|
|||
echo
|
||||
echo CONTROL-C TO STOP
|
||||
echo
|
||||
echo Sleep 10
|
||||
echo Connecting to wifi network WIT Public 2
|
||||
killall wpa_supplicant
|
||||
ifconfig wlan0 up
|
||||
sleep 10
|
||||
echo Sleep 10
|
||||
sleep 10
|
||||
echo Sleep 10
|
||||
sleep 10
|
||||
|
||||
echo mount /dev/mmcblk0p2 /home/factory
|
||||
mount /dev/mmcblk0p2 /home/factory
|
||||
|
||||
#exit
|
||||
|
||||
echo dd if=/home/factory/emmc.img.armbian of=/dev/mmcblk2
|
||||
dd if=/home/factory/emmc.img.armbian of=/dev/mmcblk2 status=progress
|
||||
|
||||
echo sync
|
||||
sync
|
||||
|
||||
ifconfig wlan0 up
|
||||
nohup wpa_supplicant -B -D wext -i wlan0 -c /etc/wpa_supplicant.conf
|
||||
#nmcli device wifi list
|
||||
#nmcli device wifi rescan
|
||||
#nmcli device wifi list
|
||||
echo
|
||||
echo
|
||||
echo INSTALL SUCCEEDED
|
||||
echo INSTALL SUCCEEDED
|
||||
echo INSTALL SUCCEEDED
|
||||
echo INSTALL SUCCEEDED
|
||||
echo
|
||||
echo Sleep 20
|
||||
sleep 20
|
||||
nohup dhclient -i wlan0
|
||||
#nmcli device wifi connect "WIT Public 2" password "aaaabbbb"
|
||||
echo CONTROL-C TO STOP
|
||||
echo Sleep 20
|
||||
sleep 20
|
||||
|
||||
echo STARTING IMAGING PROCESS!!!!!!!!!!!!
|
||||
echo
|
||||
rm -rf /root/pinebook-image
|
||||
cd /root
|
||||
git clone https://git.wit.com/wit/pinebook-image.git
|
||||
echo
|
||||
echo Launching script from git repository
|
||||
|
||||
/root/pinebook-image/run.sh
|
||||
|
||||
|
|
Loading…
Reference in New Issue