summaryrefslogtreecommitdiff
path: root/recipes/shr/initscripts-shr/hostname.sh
diff options
context:
space:
mode:
authorStefan Schmidt <stefan@datenfreihafen.org>2009-09-17 18:01:23 +0000
committerStefan Schmidt <stefan@datenfreihafen.org>2009-09-17 18:38:25 +0000
commite8622747c60b148e94f095c4bb7fe40fc52bba0a (patch)
tree76274bb2dfc0fdc63e419144deccc3a85a087378 /recipes/shr/initscripts-shr/hostname.sh
parent80c55c2574e99f025d88608966b09fcc578ed4f5 (diff)
initscripts-shr: Add SHR initscripts (from SHR)
Diffstat (limited to 'recipes/shr/initscripts-shr/hostname.sh')
-rw-r--r--recipes/shr/initscripts-shr/hostname.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/recipes/shr/initscripts-shr/hostname.sh b/recipes/shr/initscripts-shr/hostname.sh
new file mode 100644
index 0000000000..0f3d374286
--- /dev/null
+++ b/recipes/shr/initscripts-shr/hostname.sh
@@ -0,0 +1,11 @@
+#
+# 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
+