summaryrefslogtreecommitdiffstats
path: root/src
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:34 -0300
commit53fa904df0fa185f1ad0ef7836c8c17e5ce442ba (patch)
tree50270342a1f40e91c3b34dca9dce57cb90cd4219 /src
parent41817934f17d924049be7745f1707f7def4a2598 (diff)
downloadpfsense-53fa904df0fa185f1ad0ef7836c8c17e5ce442ba.zip
pfsense-53fa904df0fa185f1ad0ef7836c8c17e5ce442ba.tar.gz
save uniqueid during boot
Diffstat (limited to 'src')
-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 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");
}
OpenPOWER on IntegriCloud