24 lines
371 B
Bash
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
|
|
|