22 lines
662 B
Plaintext
22 lines
662 B
Plaintext
|
#!/bin/sh
|
||
|
retval=${SUCCESS}
|
||
|
if [ `uname -r` == '5.0.0' ]; then
|
||
|
#duid=default-duid "\000\001\000\001LnC\304\000\020\030^\340\334";
|
||
|
duid='default-duid "\000\004';
|
||
|
|
||
|
for i in `vsish -e get /hardware/machineUUID|grep \\\[|sed -e 's/.*://'|sed -e ':a;N;$!ba;s/\n//g'`; do
|
||
|
num=`printf "%d" $i`
|
||
|
tnum=`printf "\\%03o" $i`
|
||
|
if [ $num -lt 127 -a $num -gt 31 ]; then
|
||
|
tnum=`printf $tnum`
|
||
|
fi
|
||
|
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
|
||
|
fi
|
||
|
return $retval
|
||
|
|