summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-05-02 12:31:51 -0300
committerRenato Botelho <renato@netgate.com>2017-05-02 12:33:26 -0300
commit3e867e61f383eee62bea31ec8af9d82a6b92cb0e (patch)
tree13a98cf3ccafbb747ee31008087124b9628532df
parentd258e30dfa1899b67b9e8493853eba87e02b9ebb (diff)
downloadpfsense-3e867e61f383eee62bea31ec8af9d82a6b92cb0e.zip
pfsense-3e867e61f383eee62bea31ec8af9d82a6b92cb0e.tar.gz
save uniqueid during boot
-rwxr-xr-xsrc/etc/rc.bootup1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/etc/rc.bootup b/src/etc/rc.bootup
index eb40118..c23299e 100755
--- a/src/etc/rc.bootup
+++ b/src/etc/rc.bootup
@@ -209,6 +209,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");
}
OpenPOWER on IntegriCloud