From 53fa904df0fa185f1ad0ef7836c8c17e5ce442ba Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 2 May 2017 12:31:51 -0300 Subject: save uniqueid during boot --- src/etc/rc.bootup | 1 + 1 file changed, 1 insertion(+) diff --git a/src/etc/rc.bootup b/src/etc/rc.bootup index 60919e0..bfc555e 100755 --- a/src/etc/rc.bootup +++ b/src/etc/rc.bootup @@ -132,6 +132,7 @@ if (mwexec("/bin/kenv -q pfSense.boot 2>/dev/null") != 0) { @file_put_contents("{$g['vardb_path']}/vendor_mac", $vendor_mac_arr_json); } unset($ifs, $if, $vendor_mac_arr, $vendor_mac_arr_json); + mwexec("/usr/sbin/gnid > {$g['vardb_path']}/uniqueid 2>/dev/null"); mwexec("/bin/kenv pfSense.boot=1"); } -- cgit v1.1