projects
/
grml-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
746c456
)
grml-hostname: no longer rely on /etc/init.d/hostname.sh
author
Michael Prokop
<mika@grml.org>
Fri, 30 Dec 2016 23:17:49 +0000
(
00:17
+0100)
committer
Michael Prokop
<mika@grml.org>
Fri, 30 Dec 2016 23:17:49 +0000
(
00:17
+0100)
/etc/init.d/hostname.sh was shipped with the initscripts,
but it doesn't necessarily exist anymore nowadays.
So instead directly invoke `hostname` as the init script
does as well.
usr_sbin/grml-hostname
patch
|
blob
|
history
diff --git
a/usr_sbin/grml-hostname
b/usr_sbin/grml-hostname
index
b7a6eab
..
ade8631
100755
(executable)
--- a/
usr_sbin/grml-hostname
+++ b/
usr_sbin/grml-hostname
@@
-75,7
+75,7
@@
Configuration of myhostname in /etc/postfix/main.cf has been adjusted as well. D
/etc/init.d/avahi-daemon restart
fi
- /etc/init.d/hostname.sh
+ hostname "$NEW_HOSTNAME"
if [ -z "$NONINTERACTIVE" ] ; then
dialog --stdout --title "${PN}" --msgbox "Setting hostname to $NEW_HOSTNAME was successful.$POSTFIX" 0 0