diff --git a/connectAdHoc.sh b/connectAdHoc.sh new file mode 100755 index 0000000000000000000000000000000000000000..de2506ae85eb766a87c668ce52a4aad8ca16b584 --- /dev/null +++ b/connectAdHoc.sh @@ -0,0 +1,31 @@ +# Addresses: +# Odriod 10.49.43.1 +# + +echo 'start' + +echo 'sudo service network-manager stop' +sudo service network-manager stop +sleep 0.5 + +echo 'sudo ifconfig wlan0 down' +sudo ifconfig wlan0 down +sleep 0.5 + +echo 'sudo iw wlan0 set type ibss' +sudo iw wlan0 set type ibss +sleep 0.5 + +echo 'sudo ifconfig wlan0 up' +sudo ifconfig wlan0 up +sleep 0.5 + +echo 'sudo iw wlan0 ibss join SPHAF 2432' +sudo iw wlan0 ibss join SPHAF 2432 +sleep 0.5 + +echo 'sudo ifconfig wlan0 10.42.43.3' +sudo ifconfig wlan0 10.42.43.3 +sleep 0.5 + +echo 'done'