aboutsummaryrefslogtreecommitdiff
path: root/network
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2010-06-22 05:59:12 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-06-22 05:59:12 -0500
commit3a608519b697426d5267688bbad5d4bf63f10145 (patch)
tree6ed410e4b787d0c89e6021a58000f75aee3f2a4b /network
parent56665ece6d5123574f5adce784555569dca04018 (diff)
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')
-rw-r--r--network/NetworkManager/NetworkManager.SlackBuild2
-rw-r--r--network/NetworkManager/doinst.sh5
-rw-r--r--network/NetworkManager/nm-system-settings.conf.new4
3 files changed, 10 insertions, 1 deletions
diff --git a/network/NetworkManager/NetworkManager.SlackBuild b/network/NetworkManager/NetworkManager.SlackBuild
index 39d45a4c52305..efdbf44b12456 100644
--- a/network/NetworkManager/NetworkManager.SlackBuild
+++ b/network/NetworkManager/NetworkManager.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=NetworkManager
VERSION=${VERSION:-0.8}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
diff --git a/network/NetworkManager/doinst.sh b/network/NetworkManager/doinst.sh
index 9179f3cddc5ec..39b8957282bce 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
diff --git a/network/NetworkManager/nm-system-settings.conf.new b/network/NetworkManager/nm-system-settings.conf.new
index c37b596800346..eca86b84f899a 100644
--- a/network/NetworkManager/nm-system-settings.conf.new
+++ b/network/NetworkManager/nm-system-settings.conf.new
@@ -1,2 +1,6 @@
[main]
plugins=keyfile
+
+[keyfile]
+hostname=yourhostname
+