dotfiles

custom dotfiles
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

disconnect (297B)


      1 #!/usr/bin/env bash
      2 
      3 WIFI_DEV=$(iw dev | awk '$1=="Interface"{print $2}')
      4 
      5 killit() {
      6 	if $(pidof ${1} >/dev/null) ; then
      7 		echo "killing $1"
      8 		sudo kill -9 $(pidof ${1}) 
      9 	fi
     10 }
     11 
     12 sudo umount -a --types nfs,nfs4
     13 sudo ip link set ${WIFI_DEV} down
     14 killit wpa_supplicant 
     15 killit dhcpcd
     16 killit openvpn