mirror of
https://git.yoctoproject.org/poky
synced 2026-02-13 20:23:04 +01:00
(From OE-Core rev: d58fc7a3ccede8706bf6a6aa7f7301f716128db8) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
15 lines
270 B
Bash
Executable File
15 lines
270 B
Bash
Executable File
#!/bin/sh
|
|
### 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
|