diff options
Diffstat (limited to 'meta/recipes-core/initscripts/initscripts-1.0/hostname.sh')
-rwxr-xr-x | meta/recipes-core/initscripts/initscripts-1.0/hostname.sh | 13 |
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 @@ +### BEGIN INIT INFO +# Provides: hostname +# Required-Start: +# Required-Stop: +# Default-Start: S +# Default-Stop: +# Short-Description: Set hostname based on /etc/hostname +### END INIT INFO + +if test -f /etc/hostname +then + hostname -F /etc/hostname +fi |