|
From: Jay <ja...@as...> - 2000-08-30 22:56:19
|
I am using the new beta image to boot and loading the pcmbase.tgz
package. The problem is when I run pcmcia I get the following:
/usr/sbin/pcmcia: 38: Syntax error: "fi" unexpected (expecting "then")
and then ends.....I've included the pcmcia I'm running.
----------
#!/bin/sh
#
# pcmcia control script - by Matthew Franz (md...@io...)
# for Trinux: A Linux Security Toolkit
#
# usage:
# pcmcia [start | stop ]
# defaults to start
#
#
if [ "$1"="stop" ]
then
ifconfig eth0 down
killall cardmgr
if rmmod ds
then
rmmod i82365
rmmod pcmcia_core
else
lsmod
echo "Please remove your NIC module with the rmmod
[module] command"
echo "and execute again"
fi
elif [ "$1="start" ]
then
insmod pcmcia_core
insmod i82365
insmod ds
cardmgr
sleep 3
netcfg
else
echo "Usage:
echo ' pcmcia {start|stop}'
fi
----------
"If all the personal computers in the world - ~260 million computers - were
put to work on a single PGP-encrypted message, it would still take an
estimated 12 million times the age of the universe, on average, to break a
single message."
-- William Crowell, Deputy Director of the National Security Agency, March
1997
|