1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-28 01:12:34 +01:00

add support for copying dhclient.conf.template from a default file if it isn't found

This commit is contained in:
Adam Blackburn
2009-12-23 16:48:39 -10:00
parent a327a824f7
commit fa76ba5a7a
4 changed files with 28 additions and 4 deletions

View File

@@ -1,3 +0,0 @@
# wicd will replace $_HOSTNAME in the following line with
# the appropriate hostname for this system
send host-name "$_HOSTNAME";

View File

@@ -0,0 +1,22 @@
# If you're reading this, you're probably reading either:
# /etc/wicd/dhclient.conf.template.default
# or
# /etc/wicd/dhclient.conf.template
# or
# a generated dhclient configuration in /var/run
# (these files could be in different locations, as determined by your
# packager or system administrator, but those are the default pathes)
#
# Here's what you need to know:
# The .default file is copied by wicd to dhclient.conf.template if
# dhclient.conf.template does not exist. If dhclient.conf.template
# does exist, the .default file is not used. This is to allow
# upgrades of the package without destroying user changes.
#
# In other words, if you want to change the generated dhclient
# configuration, you need to change dhclient.conf.template,
# NOT dhclient.conf.template.default
# wicd will replace $_HOSTNAME in the following line with
# the appropriate hostname for this system
send host-name "$_HOSTNAME";