PCMCIA: Error message when switching between the network schemes

Support knowledgebase (pcmcia_network_71)
Applies to

SuSE Linux: Version 7.1
This article refers to an older version of SuSE Linux. Therefore some of the informations given in this article may be outdated or the article may contain stale links.

PCMCIA: Version 3.1.22

Symptom:

You are using different network configurations the so called 'schemes'which are located in /etc/network.opts: When you switch between the different 'schemes' you get an error message (even if the 'schemes' were switched correctly):
linux: # cardctl scheme athome
checking : eth0./network: [: =: unary operator expected

Cause:

In sector "cksum" of the script /etc/pcmcia/network an error crept in.

Solution:

Just change in the respective line 241 $WIRELESS and put it in quotation marks : "$WIRELESS".

Here is the respective patch:
-------------------------------------------------------------
@@ -238,7 +238,7 @@
     ;;

 'cksum')
-    if [ $WIRELESS = 1 ] ; then exit 1 ; fi
+    if [ "$WIRELESS" = 1 ] ; then exit 1 ; fi
     chk_simple "$NEW_SCHEME,$SOCKET,$INSTANCE,$HWADDR" || exit 1
     ;;

-------------------------------------------------------------

Keywords: PCMCIA, SCHEMES, NETWORK

Categories: Network

SDB-pcmcia_network_71, Copyright SuSE Linux AG, Nürnberg, Germany - Version: 18. Jun 2001
SuSE Linux AG - Last generated: 18. Jun 2001 by ast (sdb_gen 1.40.0)