Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- #
- spinner(){
- PROC=$1
- BANNER=$2
- while kill -0 $PROC >/dev/null 2>&1;do
- echo -ne "$BANNER"; sleep 0.05
- done
- echo "$BANNER - DONE"
- return 0
- }
- ifconfig mon down &
- spinner "$(pidof ifconfig)" $"Taking mon0 down..."
- echo
- ifconfig mon0 up &
- spinner "$(pidof ifconfig)" $"Putting mon0 up..."
- echo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement