use duid already stored, if present.
1 files changed, 4 insertions(+), 1 deletions(-) M MODULE/SystemTypes.pmod/SmartOS.pike
M MODULE/SystemTypes.pmod/SmartOS.pike +4 -1
@@ 8,7 8,10 @@ string postamble = "\n#\n# END DHCPv6_PD string ndpdconffile = "/etc/inet/ndpd.conf"; string get_identifier() { - return Standards.JSON.decode(Process.popen("sysinfo"))->UUID; + if(file_stat("/etc/dhcp/duid")) + return Stdio.read_file("/etc/dhcp/duid"); + else + return Standards.JSON.decode(Process.popen("sysinfo"))->UUID; } string get_command_segment(string conf) {