SuSE GmbH

SuSE Support Database

Title: PCMCIA: activating a "scheme"

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

PCMCIA: activating a "scheme"

Applies to

SuSE Linux: Version 5.3

Symptom:

You try to access the preconfigured "schemes" (network schemes) directly via LILO, like it is described in /usr/doc/packages/pcmcia/PCMCIA-HOWTO. However the switching doesn't work the way you want it.

Cause:

The environment variable "SCHEME" isn't evaluated by the "pcmcia" startscript.

Solution:

Enter the following line into /sbin/init.d/pcmcia :

if [ "$SCHEME" ] ; then umask 022 ; echo $SCHEME > $SC ; fi
Here's the patch :
*** /sbin/init.d/pcmcia.orig
--- /sbin/init.d/pcmcia
***************
*** 34,39 ****
--- 34,40 ----
          SC=/var/run/pcmcia-scheme
          if [ -L $SC -o ! -O $SC ] ; then rm -f $SC ; fi
          if [ ! -f $SC ] ; then umask 022 ; echo > $SC ; fi
+          if [ "$SCHEME" ] ; then umask 022 ; echo $SCHEME > $SC ; fi
          if [ -d $PC ] ; then
              /sbin/insmod $PC/pcmcia_core.o $PCMCIA_CORE_OPTS
              /sbin/insmod $PC/$PCMCIA.o $PCMCIA_PCIC_OPTS

----------

See also:

----------

Keywords: PCMCIA, SCHEME, SCHEMATA, NETZWERK, NETWORK, ENVIRONMENT, NOTEBOOK, LAPTOP

----------

Categories: Configuration , Network , Internet

----------

Feedback welcome: Send Mail to ke@suse.de (Please give the following subject: SDB-ke_pcmcia-scheme53)

----------

Mainpage o Searchform o History o Versions o Categories o Contents
Deutsch

----------

SDB-ke_pcmcia-scheme53, Copyright SuSE GmbH, Nuremberg, Germany - Version: 26. Aug 1998
SuSE GmbH - Last generated: 07. Oct 1999 16:48:29 by maddin with sdb_gen 1.00.0