i working on project involving switching raspberry pi access point web client. script works fine in raspberry pi2 usb wifi dongle (pi stays on boot). raspberry pi3, pi3 reboot after run script. how switch pi3 web client mode without rebooting?
code: select all
sudo ifdown --force wlan0 sudo cp /home/pi/pi_setup/client_setup/interfaces.client /etc/network/interfaces sudo cp /home/pi/pi_setup/client_setup/sysctl.conf /etc/sysctl.conf sudo sh -c "echo 0 > /proc/sys/net/ipv4/ip_forward" sudo service hostapd stop sudo service isc-dhcp-server stop sleep 3 sudo ifup wlan0 sleep 2 sudo ifdown wlan0 sleep 2 sudo ifup wlan0
thanks help!
raspberrypi
Comments
Post a Comment