generic-poky/meta/recipes-core/initscripts/initscripts-1.0/hostname.sh

14 lines
260 B
Bash
Executable File

### 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