~checkbox-dev/checkbox-certification/release

« back to all changes in this revision

Viewing changes to bin/checkbox-certification-prepare

  • Committer: Tarmac
  • Author(s): Po-Hsu Lin
  • Date: 2013-11-15 15:20:34 UTC
  • mfrom: (631.1.1 checkbox-certification)
  • Revision ID: tarmac-20131115152034-dbk1bhvlo6yjp8h4
"automatic merge by tarmac [r=roadmr][bug=1251503][author=cypressyew]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
sudo rm /etc/xdg/autostart/checkbox-certification-client.desktop
19
19
 
20
20
#Remove the static declaration and re-enable network manager
 
21
#Wait 3 second to allow NetworkManager to re-enable
21
22
sudo sed -i "/eth0/d" /etc/network/interfaces
22
23
sudo killall NetworkManager
 
24
sleep 3
23
25
 
24
26
#Prepare a script to run checkbox with the needed tags
25
27
#Checkbox needs to run in debug mode for us to be able to pick the submission_id when 
85
87
#(I can check this using sudo iwconfig, it's going to be eth1 or wlan0
86
88
#most likely)
87
89
 
88
 
sudo /usr/share/checkbox/scripts/create_connection $WPA_BG_SSID --security=wpa --key=$WPA_BG_PSK
89
 
/usr/share/checkbox/scripts/internet_test --interface=`nmcli dev status | awk '/802-11-wireless/ {print $1}'`
 
90
sudo /usr/share/checkbox/scripts/create_connection wifi $WPA_BG_SSID --security=wpa --key=$WPA_BG_PSK
 
91
/usr/share/checkbox/scripts/gateway_ping_test --interface=`nmcli dev status | awk '/802-11-wireless/ {print $1}'`
90
92
 
91
93
iperf -c $SERVER_IPERF -i 5 -t 60
92
94