# Addresses:
# Odriod 10.49.43.1
#

IFACE="wlp4s0"

echo 'start'

echo start

echo sudo service network-manager stop
sudo service network-manager stop
sleep 0.5

echo 'sudo ifconfig $IFACE down'
sudo ifconfig $IFACE down
sleep 0.5

echo 'sudo iw $IFACE set type ibss'
sudo iw $IFACE set type ibss
sleep 0.5

echo 'sudo ifconfig $IFACE up'
sudo ifconfig $IFACE up
sleep 0.5

echo 'sudo iw $IFACE ibss join SPHAF 2432'
sudo iw $IFACE ibss join SPHAF 2432
sleep 0.5

echo 'sudo ifconfig $IFACE 10.42.43.4'
sudo ifconfig $IFACE 10.42.43.4
sleep 0.5

echo done