initscripts: set hostname via rc.sysinit.
--HG-- extra : convert_revision : 3f0c356f141d3d408089dca970497b310dc5a66e
This commit is contained in:
parent
5329e3579b
commit
e9a15758da
1 changed files with 5 additions and 0 deletions
|
@ -50,3 +50,8 @@ fi
|
|||
if [ -f /etc/localtime ]; then
|
||||
hwclock $HWCLOCK_PARAMS --noadjfile
|
||||
fi
|
||||
|
||||
# Set hostname
|
||||
if [ -n "$HOSTNAME" ]; then
|
||||
hostname "$HOSTNAME"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue