3 # This script can be used to install packages from the
4 # the installation CD-ROM.
7 CDPATH
=packages
/$
(uname
-r)/$
(uname
-m)/All
8 PACKSUM
=pkg_summary.bz2
19 if [ -z $
(mount |
grep 'on /mnt ') ]
21 echo "Mounting $cddrive on /mnt."
26 # Find package summary
29 if [ -f $i/$CDPATH/$PACKSUM ]
31 (>&2 echo "Found package summary at $i/$CDPATH/$PACKSUM.")
33 # Set package repo to CD and populate package db
34 export PKG_REPOS
=$i/$CDPATH/
42 echo "Can't find package summary. Please mount CD first at /mnt and make sure"
43 echo "that $CDPATH/$PACKSUM exists on the CD."