Advertisement
Guest User

Untitled

a guest
Feb 21st, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. function usage {
  4. echo "Usage: wifi start|restart|stop"
  5. }
  6.  
  7. function start {
  8. modprobe iwlwifi
  9. }
  10.  
  11. function stop {
  12. rmmod iwldvm
  13. rmmod iwlwifi
  14. }
  15.  
  16. function restart {
  17. stop
  18. start
  19. }
  20.  
  21. case $1 in
  22. start)
  23. start
  24. ;;
  25. stop)
  26. stop
  27. ;;
  28. restart)
  29. restart
  30. ;;
  31. *)
  32. usage
  33. ;;
  34. esac
  35.  
  36. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement