diff options
-rw-r--r-- | network/NetworkManager/NetworkManager.SlackBuild | 2 | ||||
-rw-r--r-- | network/NetworkManager/doinst.sh | 5 | ||||
-rw-r--r-- | network/NetworkManager/nm-system-settings.conf.new | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/network/NetworkManager/NetworkManager.SlackBuild b/network/NetworkManager/NetworkManager.SlackBuild index 39d45a4c52..efdbf44b12 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 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 diff --git a/network/NetworkManager/nm-system-settings.conf.new b/network/NetworkManager/nm-system-settings.conf.new index c37b596800..eca86b84f8 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 + |