/[baselayout]/trunk/init.d/hostname
Gentoo

Contents of /trunk/init.d/hostname

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2695 - (show annotations) (download)
Fri May 11 10:33:49 2007 UTC (7 years, 7 months ago) by uberlord
File size: 435 byte(s)
Store the defined random pool size, #177722 thanks to Yaroslav Isakov.
1 #!/sbin/runscript
2 # Copyright 1999-2007 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 depend() {
6 need checkroot
7 }
8
9 start() {
10 if [ -f /etc/hostname ] ; then
11 ewarn "You should stop using /etc/hostname and use /etc/conf.d/hostname"
12 HOSTNAME=$(cat /etc/hostname)
13 fi
14
15 ebegin "Setting hostname to ${HOSTNAME}"
16 hostname "${HOSTNAME}"
17 eend $? "Failed to set the hostname"
18 }
19
20 # vim: set ts=4 :

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.20