summaryrefslogtreecommitdiffstats
path: root/init.d/hostname
diff options
context:
space:
mode:
Diffstat (limited to 'init.d/hostname')
-rwxr-xr-xinit.d/hostname9
1 files changed, 9 insertions, 0 deletions
diff --git a/init.d/hostname b/init.d/hostname
new file mode 100755
index 0000000..5ce489c
--- /dev/null
+++ b/init.d/hostname
@@ -0,0 +1,9 @@
+#!/sbin/runscript
+
+start() {
+ if [ -f /etc/hostname ] ; then
+ ebegin "Setting hostname"
+ hostname -F /etc/hostname
+ eend $?
+ fi
+}