2010-08-19 13:15:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
retval=${SUCCESS}
|
2010-08-19 13:18:23 +00:00
|
|
|
if [ `uname -r` == '4.1.0' ]; then
|
2010-08-20 13:04:40 +00:00
|
|
|
#duid=default-duid "\000\001\000\001LnC\304\000\020\030^\340\334";
|
|
|
|
duid='default-duid "\000\004';
|
|
|
|
|
2012-03-06 14:13:20 +00:00
|
|
|
for i in `vsish -e get /hardware/bios/dmiInfo|grep -A15 UUID|sed -e 's/.*://'|sed -e ':a;N;$!ba;s/\n//g'`; do
|
2010-08-20 13:04:40 +00:00
|
|
|
num=`printf "%d" $i`
|
|
|
|
tnum=`printf "\\%03o" $i`
|
|
|
|
duid=$duid$tnum
|
|
|
|
done
|
|
|
|
duid=$duid'";'
|
|
|
|
echo $duid > /etc/dhclient6-vmk0.leases
|
2010-08-19 13:18:23 +00:00
|
|
|
Exec esxcfg-advcfg -S 1 -U IPv6ConfigSet
|
|
|
|
Exec esxcfg-module -s "ipv6=1" tcpip3
|
|
|
|
fi
|
|
|
|
return $retval
|
2010-08-19 13:15:57 +00:00
|
|
|
|