summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-31 02:31:31 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.geekgod.com>2009-05-31 02:31:31 -0400
commit30934c59138898a0562c98d085143b508dc8497b (patch)
tree8fd0fbee46c50d1fbf0533a39c21abadae8642af /etc
parent34bb5b72bcfcda3f5d112db2ad4183504c4fb5c9 (diff)
downloadpfsense-30934c59138898a0562c98d085143b508dc8497b.zip
pfsense-30934c59138898a0562c98d085143b508dc8497b.tar.gz
Set hostname then call hostid
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/system.inc7
-rwxr-xr-xetc/rc3
2 files changed, 6 insertions, 4 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index c493ccd..779925d 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -215,8 +215,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() {
diff --git a/etc/rc b/etc/rc
index 8e99d85..241cb91 100755
--- a/etc/rc
+++ b/etc/rc
@@ -270,9 +270,6 @@ fi
rm -f /cf/conf/backup/backup.cache
-# Setup host GUID ID. This is used by ZFS.
-/etc/rc.d/hostid start
-
# Copy php.ini to alternate location after generation
cp /usr/local/lib/php.ini /usr/local/etc/php.ini
OpenPOWER on IntegriCloud