#!/bin/bash
mount -o remount,rw / || exit 1
if [ "${1}" == "-r" ]; then
  rm -f /etc/netctl/wlan0-*
else
  wifi-menu
fi
sleep 2
reboot

