diff options
author | Greg Kroah-Hartman <gregkh@gentoo.org> | 2004-03-30 01:11:28 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@gentoo.org> | 2004-03-30 01:11:28 +0000 |
commit | c0876e12a899bc5aa7bcaa4984e6734c8598cf2e (patch) | |
tree | 0ddff737864439be596c7c0a3a6da0df6a5b2f37 /sys-apps/hotplug/files | |
parent | stable on ppc (Manifest recommit) (diff) | |
download | gentoo-2-c0876e12a899bc5aa7bcaa4984e6734c8598cf2e.tar.gz gentoo-2-c0876e12a899bc5aa7bcaa4984e6734c8598cf2e.tar.bz2 gentoo-2-c0876e12a899bc5aa7bcaa4984e6734c8598cf2e.zip |
tweaked hotplug.rc script a bit
Diffstat (limited to 'sys-apps/hotplug/files')
-rw-r--r-- | sys-apps/hotplug/files/hotplug.rc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys-apps/hotplug/files/hotplug.rc b/sys-apps/hotplug/files/hotplug.rc index f7b0275047f0..9118cce95797 100644 --- a/sys-apps/hotplug/files/hotplug.rc +++ b/sys-apps/hotplug/files/hotplug.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/files/hotplug.rc,v 1.7 2004/03/06 04:09:07 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/hotplug/files/hotplug.rc,v 1.8 2004/03/30 01:11:28 gregkh Exp $ depend() { need modules @@ -17,23 +17,25 @@ checkconfig() { start() { checkconfig || return 1 - ebegin "Starting USB and PCI hotplugging" for RC in /etc/hotplug/*.rc do + NAME=`basename $RC .rc` + ebegin "Starting $NAME hotplugging" # We do not want to check the return status, as # some of the scripts may fail due to drivers not # compiled as modules ... $RC start + eend 0 done - eend 0 } stop() { local error - ebegin "Stopping USB and PCI hotplugging" for RC in /etc/hotplug/*.rc do + NAME=`basename $RC .rc` + ebegin "Stopping $NAME hotplugging" $RC stop + eend 0 done - eend 0 } |