diff options
Diffstat (limited to 'init.d')
-rwxr-xr-x | init.d/checkfs | 3 | ||||
-rwxr-xr-x | init.d/checkroot | 3 | ||||
-rwxr-xr-x | init.d/hostname | 2 | ||||
-rwxr-xr-x | init.d/local | 3 | ||||
-rwxr-xr-x | init.d/localmount | 4 | ||||
-rwxr-xr-x | init.d/netmount | 2 | ||||
-rwxr-xr-x | init.d/rmnologin | 2 | ||||
-rwxr-xr-x | init.d/urandom | 2 |
8 files changed, 21 insertions, 0 deletions
diff --git a/init.d/checkfs b/init.d/checkfs index d2929edd..54bdce94 100755 --- a/init.d/checkfs +++ b/init.d/checkfs @@ -2,6 +2,9 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +description="Check filesystems according to /etc/fstab for errors and \ +optionally repair them." + depend() { need checkroot after modules diff --git a/init.d/checkroot b/init.d/checkroot index d6dcd4f7..a7a8b3eb 100755 --- a/init.d/checkroot +++ b/init.d/checkroot @@ -2,6 +2,9 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +description="Check the root filesystem according to /etc/fstab for errors \ +and optionally repair them." + do_mtab() { # Don't create mtab if /etc is readonly if ! touch /etc/mtab 2> /dev/null ; then diff --git a/init.d/hostname b/init.d/hostname index 4e804520..35cf1068 100755 --- a/init.d/hostname +++ b/init.d/hostname @@ -2,6 +2,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +description="Sets the hostname of the machine." + depend() { need checkroot } diff --git a/init.d/local b/init.d/local index 77d02668..60556e4c 100755 --- a/init.d/local +++ b/init.d/local @@ -2,6 +2,9 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +description="Executes user command in /etc/conf.d/local.start when starting \ +and /etc/conf.d/local.stop when stopping." + depend() { after * } diff --git a/init.d/localmount b/init.d/localmount index 456aee34..02688488 100755 --- a/init.d/localmount +++ b/init.d/localmount @@ -2,6 +2,10 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +description="Mounts disks and swap according to /etc/fstab." +[ -e /proc/filessystems ] && description="${description} Also mounts various filesystems in /proc." +[ -x /sbin/dumpon ] && description="${description} Also configures saving kernel dumps to swap." + depend() { need checkfs } diff --git a/init.d/netmount b/init.d/netmount index a2f71302..61b7a6c6 100755 --- a/init.d/netmount +++ b/init.d/netmount @@ -2,6 +2,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +description="Mounts network shares according to /etc/fstab." + have_nfs() { local IFS=\n x= set -- $(fstabinfo --fstype nfs,nfs4) diff --git a/init.d/rmnologin b/init.d/rmnologin index 0c1691f7..3ebd6dfd 100755 --- a/init.d/rmnologin +++ b/init.d/rmnologin @@ -2,6 +2,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 +description="Removes a file which blocks logins until this service has run." + depend() { need localmount } diff --git a/init.d/urandom b/init.d/urandom index ecded0a5..3d083766 100755 --- a/init.d/urandom +++ b/init.d/urandom @@ -4,6 +4,8 @@ URANDOM_SEED=${URANDOM_SEED:-/var/run/random-seed} +description="Initializes the random number generator." + depend() { need localmount } |