Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/sh
- ether() {
- ifconfig $1 ether | grep ether| while read keyword macaddr; do
- echo $macaddr
- done
- }
- if [ "X$(whoami)" != "Xroot" ]; then
- sudo $0
- exit $?
- fi
- for iface in $(ifconfig -l); do
- case $iface in
- vmnet[0-9])
- eui64=$(~/bin/eui64.py $(ether $iface))
- ifconfig $iface inet6 $eui64 prefixlen 64
- ;;
- esac
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement