aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/initscripts/files/hostname.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/initscripts/files/hostname.sh')
-rw-r--r--recipes/initscripts/files/hostname.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/recipes/initscripts/files/hostname.sh b/recipes/initscripts/files/hostname.sh
new file mode 100644
index 0000000000..1a3fd2f17e
--- /dev/null
+++ b/recipes/initscripts/files/hostname.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# hostname.sh Set hostname.
+#
+# Version: @(#)hostname.sh 1.10 26-Feb-2001 miquels@cistron.nl
+#
+
+if test -f /etc/hostname
+then
+ hostname -F /etc/hostname
+fi
+