summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMartin Fuchs <mfuchs@pfsense.org>2007-09-25 19:47:34 +0000
committerMartin Fuchs <mfuchs@pfsense.org>2007-09-25 19:47:34 +0000
commit80717709dec31e3dcb45b6a8c180bd0009c92597 (patch)
tree22cac6f3c4949dc864f2bb1ab281467a24cfdac0 /etc
parenta719e69f9cb0fdbaff2af70a51ad056df35ade18 (diff)
downloadpfsense-80717709dec31e3dcb45b6a8c180bd0009c92597.zip
pfsense-80717709dec31e3dcb45b6a8c180bd0009c92597.tar.gz
Ticket 1458: Add "option host-name" to dhcpd.conf
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/services.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 46a6139..c357649 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -315,6 +315,9 @@ EOD;
if ($sm['ipaddr'])
$dhcpdconf .= " fixed-address {$sm['ipaddr']};\n";
+ if ($sm['hostname'])
+ $dhcpdconf .= " option host-name {$sm['hostname']};\n";
+
$dhcpdconf .= "}\n";
$i++;
}
OpenPOWER on IntegriCloud