mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Set hostname then call hostid onestart
This commit is contained in:
parent
4aecfb7ac2
commit
6bfccde711
@ -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() {
|
||||
|
||||
3
etc/rc
3
etc/rc
@ -293,9 +293,6 @@ cap_mkdb /etc/login.conf
|
||||
# /usr/local/etc/php.ini and /usr/local/lib/php.ini
|
||||
. /etc/rc.php_ini_setup
|
||||
|
||||
# Setup the hostid which is required for ZFS
|
||||
/etc/rc.d/hostid start
|
||||
|
||||
# let the PHP-based configuration subsystem set up the system now
|
||||
echo -n "Launching PHP init system..."
|
||||
rm -f /cf/conf/backup/backup.cache
|
||||
|
||||
Loading…
Reference in New Issue
Block a user