#!/bin/sh . config/options PKG_DIR=`find $PACKAGES -type d -name $1` mkdir -p $INSTALL/usr/bin if [ "$DEVTOOLS" = "yes" ]; then cp -P $PKG_DIR/scripts/autoupdate.devel $INSTALL/usr/bin/autoupdate else cp -P $PKG_DIR/scripts/autoupdate.release $INSTALL/usr/bin/autoupdate fi mkdir -p $INSTALL/usr/config cp -P $PKG_DIR/config/update.conf $INSTALL/usr/config mkdir -p $INSTALL/etc/crontabs echo -e "* */6 * * *\t/usr/bin/autoupdate" >> $INSTALL/etc/crontabs/root