busybox: rework cron support

This commit is contained in:
Stefan Saraev 2013-01-26 19:21:49 +02:00
parent 30c4121a0c
commit aece064802
2 changed files with 5 additions and 3 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

@ -76,7 +76,4 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
if [ "$CRON_SUPPORT" = "yes" ] ; then
mkdir -p $INSTALL/etc/init.d
cp $PKG_DIR/scripts/09_crond $INSTALL/etc/init.d/
else
rm -f $INSTALL/sbin/crond
rm -f $INSTALL/bin/crontab
fi