/bin/pcmcia script for Slackware 9.0 installation

I stripped out the floppy disk stuff, and killing the cardbus.

#!/bin/sh
# This script configures support for PCMCIA and/or Cardbus cards needed during
# installation, such as a CD-ROM drive or an ethernet card used for an NFS
# install.

echo
echo "PCMCIA/Cardbus support script, 2003-02-18 volkerdi@slackware.com"
echo

# now, set up the support:
( cd /lib
  if [ -d modules ]; then
    mv modules modules.olddir
  elif [ -L modules ]; then
    rm -f modules
  fi
  ln -sf /pcmcia/lib/modules .
)
( cd /sbin
  for file in /pcmcia/sbin/* ; do
    if [ -L `basename $file` ]; then
      rm `basename $file`
    fi
    if [ ! -r `basename $file` ]; then
      ln -sf $file .
    fi
  done
)
( cd /etc
  rm -f pcmcia
  ln -sf /pcmcia/etc/pcmcia .
)

# OK, here goes nothing:
/pcmcia/scripts/rc.pcmcia start

echo
echo
echo "The PCMCIA/Cardbus subsystem is now installed.  Please make sure that"
echo "all of the cards you'll need for the installation are in the machine."
echo "If you still need to insert any PCMCIA/Cardbus cards, do that now.  Once"
echo "the drive stops (indicating that all needed modules have been"
echo -n "loaded), then press [enter] to continue."
read inputjunk
echo

echo "Cleaning up..."
sleep 10 

# Restore old modules:
if [ -L /lib/modules ]; then
  rm -f /lib/modules
fi
if [ -d /lib/modules.olddir ]; then
  mv /lib/modules.olddir /lib/modules
fi

echo
echo "The next step in your installation may be partitioning your hard drive"
echo "(if you're installing to a Linux partition) with 'fdisk' or 'cfdisk'"
echo "(the menu-driven version of fdisk).  If you already have a partition"
echo "prepared for Linux, run 'setup' to start the installer program."
echo

[Linux]