44 lines
951 B
Bash
Executable File
44 lines
951 B
Bash
Executable File
#!/bin/bash -x
|
|
|
|
# mount /home/internal-mmc
|
|
|
|
echo
|
|
echo
|
|
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
|
|
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
|
|
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
|
|
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
|
|
echo STARTING PINEBOOK IMAGING IN 5 SECONDS
|
|
echo
|
|
echo CONTROL-C TO STOP
|
|
echo
|
|
echo Connecting to wifi network WIT Public 2
|
|
killall wpa_supplicant
|
|
ifconfig wlan0 up
|
|
sleep 10
|
|
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 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
|
|
|