Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.32 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. #
  3. spinner(){
  4. PROC=$1
  5. BANNER=$2
  6. while kill -0 $PROC >/dev/null 2>&1;do
  7.     echo -ne "$BANNER"; sleep 0.05
  8. done
  9. echo "$BANNER - DONE"
  10. return 0
  11. }
  12.  
  13. ifconfig mon down &
  14. spinner "$(pidof ifconfig)" $"Taking mon0 down..."
  15.  
  16. echo
  17. ifconfig mon0 up &
  18. spinner "$(pidof ifconfig)" $"Putting mon0 up..."
  19.  
  20. echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement