diff options
author | Peter Johanson <latexer@gentoo.org> | 2003-06-08 13:39:22 +0000 |
---|---|---|
committer | Peter Johanson <latexer@gentoo.org> | 2003-06-08 13:39:22 +0000 |
commit | 22b344b16d08a1f0e346eb1e82e9c2e6f128354e (patch) | |
tree | c444daf5f0b9d4754bb60c11cae38609a8ba955c /sys-apps/pcmcia-cs/files | |
parent | fixing typo (diff) | |
download | gentoo-2-22b344b16d08a1f0e346eb1e82e9c2e6f128354e.tar.gz gentoo-2-22b344b16d08a1f0e346eb1e82e9c2e6f128354e.tar.bz2 gentoo-2-22b344b16d08a1f0e346eb1e82e9c2e6f128354e.zip |
Init fix. bug #22396
Diffstat (limited to 'sys-apps/pcmcia-cs/files')
-rw-r--r-- | sys-apps/pcmcia-cs/files/pcmcia.rc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys-apps/pcmcia-cs/files/pcmcia.rc b/sys-apps/pcmcia-cs/files/pcmcia.rc index 83756aab750f..703c8e9d060b 100644 --- a/sys-apps/pcmcia-cs/files/pcmcia.rc +++ b/sys-apps/pcmcia-cs/files/pcmcia.rc @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmcia-cs/files/pcmcia.rc,v 1.3 2003/02/14 23:26:37 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/pcmcia-cs/files/pcmcia.rc,v 1.4 2003/06/08 13:39:17 latexer Exp $ RUN=/var/run SC=${RUN}/pcmcia-scheme @@ -33,7 +33,7 @@ start() { rm -rf /var/lib/pcmcia fi - if [ -z `fgrep "ds " /proc/modules | head -1 | cut -c1` ] ; then + if [ -z `fgrep "ds " /proc/modules | head -n1 | cut -c1` ] ; then /sbin/modprobe pcmcia_core $CORE_OPTS 2> /dev/null /sbin/modprobe $PCIC $PCIC_OPTS 2> /dev/null /sbin/modprobe ds @@ -58,7 +58,7 @@ stop() { start-stop-daemon --stop --quiet --pidfile /var/run/cardmgr.pid --retry 5 code=$? - if [ -n `fgrep "ds " /proc/modules | head -1 | cut -c1` ]; then + if [ -n `fgrep "ds " /proc/modules | head -n1 | cut -c1` ]; then /sbin/rmmod ds 2> /dev/null /sbin/rmmod $PCIC 2> /dev/null /sbin/rmmod pcmcia_core 2> /dev/null |