summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-31 02:32:19 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-31 02:32:19 -0400
commit6bfccde711ac0b297897fd2467b019ab762f3c38 (patch)
tree8ab378b52a469a97dd70161ce2b45aa47d32501f /etc/inc/system.inc
parent4aecfb7ac23ce41ff3750f5f3ae0a09d3dd18310 (diff)
downloadpfsense-6bfccde711ac0b297897fd2467b019ab762f3c38.zip
pfsense-6bfccde711ac0b297897fd2467b019ab762f3c38.tar.gz
Set hostname then call hostid onestart
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc7
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index f05a3e9..73f2000 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -210,8 +210,13 @@ function system_hostname_configure() {
$syscfg = $config['system'];
/* set hostname */
- return mwexec("/bin/hostname " .
+ $status = mwexec("/bin/hostname " .
escapeshellarg("{$syscfg['hostname']}.{$syscfg['domain']}"));
+
+ /* Setup host GUID ID. This is used by ZFS. */
+ mwexec("/etc/rc.d/hostid start");
+
+ return $status;
}
function system_routing_configure() {
OpenPOWER on IntegriCloud