#!/bin/zsh
export name=$1
if [ -z $name ];then
echo enter data to base persistant MAC address on
read name
fi
export macaddr=`echo|python <<EOF
import zlib
name="$name";
bname=bytes(name,"utf-8");
crc=str(zlib.crc32(bname));
bcrc=bytes(crc,"utf-8");
addresssrc=bcrc.hex(":");
print("52:54:",end="")
for i in range(11):
 print(addresssrc[i],end="")
EOF`
echo $macaddr
