2011-10-10 18:15:12 +00:00
|
|
|
#!/bin/sh
|
|
|
|
retval=${SUCCESS}
|
2012-03-06 15:55:05 +00:00
|
|
|
case `uname -r` in 5.*) #if [ `uname -r` == '5.0.0' ]; then
|
2011-10-10 18:15:12 +00:00
|
|
|
#duid=default-duid "\000\001\000\001LnC\304\000\020\030^\340\334";
|
|
|
|
duid='default-duid "\000\004';
|
2012-03-06 15:55:05 +00:00
|
|
|
for i in `vsish -e get /hardware/bios/dmiInfo|grep -A15 UUID|sed -e :a -e '$!N;s/\n/ /;ta;s/ //g;s/:/ /g;s/\[[^]]*\]//g;s/UUID *//;s/^\(0x..\) \(0x..\) \(0x..\) \(0x..\) \(0x..\) \(0x..\) \(0x..\) \(0x..\)/\4 \3 \2 \1 \6 \5 \8 \7/'`; do
|
2011-10-10 18:15:12 +00:00
|
|
|
num=`printf "%d" $i`
|
|
|
|
tnum=`printf "\\%03o" $i`
|
|
|
|
duid=$duid$tnum
|
|
|
|
done
|
|
|
|
duid=$duid'";'
|
|
|
|
echo $duid > /etc/dhclient6-vmk0.leases
|
|
|
|
localcli network firewall ruleset set -r DHCPv6 -e y
|
|
|
|
localcli network ip interface ipv6 set -i vmk0 -d y
|
2012-03-06 15:55:05 +00:00
|
|
|
esac
|
2011-10-10 18:15:12 +00:00
|
|
|
return $retval
|
|
|
|
|