e641b43849
We now have a team member who is interested in OpenRC on prefix, so I am bringing it back to the main tree.
18 lines
368 B
Plaintext
18 lines
368 B
Plaintext
#!@PREFIX@/sbin/runscript
|
|
# Copyright (c) 2007-2009 Roy Marples <roy@marples.name>
|
|
# Released under the 2-clause BSD license.
|
|
|
|
description="Sets the hostname of the machine."
|
|
|
|
depend() {
|
|
keyword -prefix -lxc
|
|
}
|
|
|
|
start()
|
|
{
|
|
hostname=${hostname-${HOSTNAME-localhost}}
|
|
ebegin "Setting hostname to $hostname"
|
|
hostname "$hostname"
|
|
eend $? "Failed to set the hostname"
|
|
}
|