Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ~/development/scripts/genmac.sh
- # Test for root permissions and terminate
- if [[ $EUID -ne 0 ]]; then
- echo "This script must be run as root" 1>&2
- exit 1
- fi
- if [ $INT = "" ]; then
- echo ERROR: No interface specified.
- exit 1
- fi
- ifconfig $1 down
- macchanger -A $1
- ifconfig $1 up
- # EOF
Advertisement
Add Comment
Please, Sign In to add comment