aports/main/openrc/hostname.initd
Natanael Copa 2d2ddf507b move core/* to main/
added maintainer to several packages as well
2009-07-23 18:24:11 +00:00

19 lines
251 B
Plaintext

#!/sbin/runscript
description="Sets the hostname of the machine."
depend() {
keyword noprefix
}
start() {
if [ -f /etc/hostname ] ; then
opts="-F /etc/hostname"
else
opts="localhost"
fi
ebegin "Setting hostname"
hostname $opts
eend $?
}