Henry Griggs RamblingHomeHomePhoto Gallery Recent TopicsVisit to Australia 2002Sydney house 2002 Circular Quay 2004 Circular Quay 2002 Centrepoint Tower 2004 Oz Birds 2004 Oz Birds 2002 Bridge Climb 2002 Popular TopicsGallbladder removalPhoto of the day HP Calculators Linux/Slackware notes Ripping/burning CDROMs Geek Alaska 2003 UK in 2003 Geek Caribbean 2002 Main TopicsAnneAnne's Crafts Blog Cats Collecting Commentary Credits Events Films Links Linux Michelle Miscellaneous Me Photo Galleries Photo Of The Day Rachael Site Index Travel Us Want List Work NavigationSite MapContactEmail MeSearchAdvanced searchRelated SitesHampton Road EventsHenry's Notes Anne's Site Hampton Roads Aussies Juniper Rowing Club Great Dismal Regatta Virginia Beach Belles Virginia Beach Rowing Club Williamsburg Boat Club |
/bin/pcmcia script for Slackware 9.0 installationI 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
|