busybox: rework cron support

This commit is contained in:
Stefan Saraev 2013-01-26 19:13:55 +02:00
parent 682f755dcd
commit a07539b684
2 changed files with 5 additions and 6 deletions

View File

@ -39,6 +39,11 @@ cd $BUILD/busybox*
# Build Busybox for system
make distclean
cp $BUSYBOX_CFG_FILE .config
if [ ! "$CRON_SUPPORT" = "yes" ] ; then
sed -i -e "s|^CONFIG_CROND=.*$|# CONFIG_CROND is not set|" .config
sed -i -e "s|^CONFIG_FEATURE_CROND_D=.*$|# CONFIG_FEATURE_CROND_D is not set|" .config
sed -i -e "s|^CONFIG_CRONTAB=.*$|# CONFIG_CRONTAB is not set|" .config
fi
make oldconfig
make ARCH=$TARGET_ARCH \

View File

@ -71,9 +71,3 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
mkdir -p $INSTALL/usr/www/error
echo "404" > $INSTALL/usr/www/error/404.html
# cron support
if [ ! "$CRON_SUPPORT" = "yes" ] ; then
rm -f $INSTALL/sbin/crond
rm -f $INSTALL/bin/crontab
fi