diff options
Diffstat (limited to 'network/NetworkManager/doinst.sh')
-rw-r--r-- | network/NetworkManager/doinst.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/network/NetworkManager/doinst.sh b/network/NetworkManager/doinst.sh index 9179f3cddc..39b8957282 100644 --- a/network/NetworkManager/doinst.sh +++ b/network/NetworkManager/doinst.sh @@ -22,6 +22,11 @@ preserve_perms() { config ${NEW} } +if [ -e etc/HOSTNAME ]; then + sed -i "s,yourhostname,$(cat etc/HOSTNAME | cut -f1 -d .)," \ + etc/NetworkManager/nm-system-settings.conf.new +fi + preserve_perms etc/rc.d/rc.networkmanager.new config etc/NetworkManager/nm-system-settings.conf.new |