summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initscripts/initscripts-1.0/hostname.sh
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/hostname.sh')
-rwxr-xr-xmeta/recipes-core/initscripts/initscripts-1.0/hostname.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/hostname.sh b/meta/recipes-core/initscripts/initscripts-1.0/hostname.sh
new file mode 100755
index 0000000000..4399ee7b18
--- /dev/null
+++ b/meta/recipes-core/initscripts/initscripts-1.0/hostname.sh
@@ -0,0 +1,13 @@
1### BEGIN INIT INFO
2# Provides: hostname
3# Required-Start:
4# Required-Stop:
5# Default-Start: S
6# Default-Stop:
7# Short-Description: Set hostname based on /etc/hostname
8### END INIT INFO
9
10if test -f /etc/hostname
11then
12 hostname -F /etc/hostname
13fi