Line 36 it should be: if [ -z 'fgrep "ds " /proc/modules' ] ; then rather then if [ -z `fgrep "ds " /proc/modules` ] ; then i.e. replace "'" with "`"
i dont see anything to change ... root@rux0r files # grep /proc/modules pcmcia.rc if [ -z `fgrep "ds " /proc/modules` ] ; then if [ -z `fgrep -q "ds " /proc/modules` ]; then
I have another problem: $ fgrep "ds " /proc/modules ds 6696 1 [cb_enabler] pcmcia_core 44096 0 [cb_enabler ds i82365] This results syntax error near the if block. (It contains many brackets) A favorable fix is: if grep -q "^ds " /proc/modules; then Btw, second "if [ -z ...]" results always true because "fgrep -q" runs silently.
*** Bug 13677 has been marked as a duplicate of this bug. ***
My only gripe is the error message - I only load one pcmcia device, my wireless card, and that loads up fine.My line 36 looks right as well - is this a case of too many arguments for a bash array? (thought that was hard to accomplish...)
Okay, take a look at the new init script (either remerge pcmcia-cs or grab /usr/portage/sys-apps/pcmcia-cs/files/pcmcia.rc). I went a little overboard with my pipeline, but it should work just fine. Please test.
It works fine for me. Thanks!
db fix