script to toggle an RPi in and out of AP mode