minix/commands/scripts/packme.sh
2006-02-17 13:10:37 +00:00

24 lines
371 B
Bash

#!/bin/sh
set -e
RC=/usr/etc/rc.package
CDDIR=PACKAGES
if [ -f "$RC" ]
then . "$RC"
fi
cd /
if [ -n "$cddrive" ]
then for package in `isodir "$cddrive" $CDDIR | grep -i '\.tbz'`
do echo -n "Install $package (y/N) ? "
read y
if [ "$y" = y -o "$y" = Y ]
then echo "Extracting $CDDIR/$package .."
isoread "$cddrive" $CDDIR/$package | packit -
fi
done
fi