diff options
author | Robby Workman <rworkman@slackbuilds.org> | 2010-06-22 05:59:12 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-06-22 05:59:12 -0500 |
commit | 3a608519b697426d5267688bbad5d4bf63f10145 (patch) | |
tree | 6ed410e4b787d0c89e6021a58000f75aee3f2a4b /network/NetworkManager/doinst.sh | |
parent | 56665ece6d5123574f5adce784555569dca04018 (diff) | |
download | slackbuilds-3a608519b697426d5267688bbad5d4bf63f10145.tar.gz |
network/NetworkManager: Hackery to set static hostname
Problem reported by Fırat Birlik on the NM mailing list:
http://mail.gnome.org/archives/networkmanager-list/2010-June/msg00105.html
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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 |