fix(vagrant): pad vagrant mac to six characters

This commit is contained in:
Brian Waldon 2014-03-19 16:46:51 -07:00
parent c3efd9b622
commit 899e7ddebe

View File

@ -38,7 +38,7 @@ fi
# their assigned prefix for the first 3 bytes followed by 3 random bytes.
VBOX_MAC_PREFIX=080027
macgen() {
hexdump -n3 -e "\"${VBOX_MAC_PREFIX}%X\n\"" /dev/urandom
hexdump -n3 -e "\"${VBOX_MAC_PREFIX}%06X\n\"" /dev/urandom
}
# Used in both the ovf and Vagrantfile