diff options
author | Renato Botelho <renato@netgate.com> | 2017-05-02 12:31:51 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-05-02 12:33:34 -0300 |
commit | 53fa904df0fa185f1ad0ef7836c8c17e5ce442ba (patch) | |
tree | 50270342a1f40e91c3b34dca9dce57cb90cd4219 | |
parent | 41817934f17d924049be7745f1707f7def4a2598 (diff) | |
download | pfsense-53fa904df0fa185f1ad0ef7836c8c17e5ce442ba.zip pfsense-53fa904df0fa185f1ad0ef7836c8c17e5ce442ba.tar.gz |
save uniqueid during boot
-rwxr-xr-x | src/etc/rc.bootup | 1 |
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"); } |