Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- function usage {
- echo "Usage: wifi start|restart|stop"
- }
- function start {
- modprobe iwlwifi
- }
- function stop {
- rmmod iwldvm
- rmmod iwlwifi
- }
- function restart {
- stop
- start
- }
- case $1 in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- restart
- ;;
- *)
- usage
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement