parent
199a210d2f
commit
1e5322e5c5
@ -11,7 +11,8 @@
|
|||||||
|
|
||||||
description="Sets the hostname of the machine."
|
description="Sets the hostname of the machine."
|
||||||
|
|
||||||
depend() {
|
depend()
|
||||||
|
{
|
||||||
after clock
|
after clock
|
||||||
keyword -docker -lxc -prefix -systemd-nspawn
|
keyword -docker -lxc -prefix -systemd-nspawn
|
||||||
}
|
}
|
||||||
@ -20,8 +21,8 @@ start()
|
|||||||
{
|
{
|
||||||
local h source x
|
local h source x
|
||||||
if [ -s @SYSCONFDIR@/hostname ] && [ -r @SYSCONFDIR@/hostname ]; then
|
if [ -s @SYSCONFDIR@/hostname ] && [ -r @SYSCONFDIR@/hostname ]; then
|
||||||
read h x <@SYSCONFDIR@/hostname
|
read h x <@SYSCONFDIR@/hostname
|
||||||
source=" from @SYSCONFDIR@/hostname"
|
source="from @SYSCONFDIR@/hostname"
|
||||||
else
|
else
|
||||||
# HOSTNAME variable used to be defined in caps in conf.d/hostname.
|
# HOSTNAME variable used to be defined in caps in conf.d/hostname.
|
||||||
# It is also a magic variable in bash.
|
# It is also a magic variable in bash.
|
||||||
|
Loading…
Reference in New Issue
Block a user