. loops checked for PID_FREE . exit broken down in exit and cleanup functions; when reboot happens, cleanup is done but not exit (as processes have not actually exited), this keeps drivers working . fixed a few uninitialized and unused variables scripts: . new packaging system
36 lines
604 B
Bash
36 lines
604 B
Bash
#!/bin/sh
|
|
|
|
set -e
|
|
|
|
RC=/usr/etc/rc.package
|
|
CDDIR=PACKAGES
|
|
MP=/mnt
|
|
CDPACK=${MP}/install/packages
|
|
|
|
if [ -f "$RC" ]
|
|
then . "$RC"
|
|
fi
|
|
|
|
cd /
|
|
|
|
if [ -n "$cddrive" ]
|
|
then pack=${cddrive}p2
|
|
umount $pack >/dev/null 2>&1 || true
|
|
if mount $pack $MP
|
|
then
|
|
cd $CDPACK
|
|
for package in `ls *.tar.bz`
|
|
do echo $package
|
|
grep $package List
|
|
echo -n "Install $package (y/N) ? "
|
|
read y
|
|
if [ "$y" = y -o "$y" = Y ]
|
|
then echo "Extracting $CDPACK/$package .."
|
|
cat $package | packit -
|
|
fi
|
|
done
|
|
else echo "CD mount failed - skipping CD packages."
|
|
fi
|
|
else echo "Don't know where the install CD is.
|
|
fi
|
|
|