mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 05:06:43 +00:00
busybox: rework cron support
This commit is contained in:
parent
30c4121a0c
commit
aece064802
@ -39,6 +39,11 @@ cd $BUILD/busybox*
|
|||||||
# Build Busybox for system
|
# Build Busybox for system
|
||||||
make distclean
|
make distclean
|
||||||
cp $BUSYBOX_CFG_FILE .config
|
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 oldconfig
|
||||||
|
|
||||||
make ARCH=$TARGET_ARCH \
|
make ARCH=$TARGET_ARCH \
|
||||||
|
@ -76,7 +76,4 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
|
|||||||
if [ "$CRON_SUPPORT" = "yes" ] ; then
|
if [ "$CRON_SUPPORT" = "yes" ] ; then
|
||||||
mkdir -p $INSTALL/etc/init.d
|
mkdir -p $INSTALL/etc/init.d
|
||||||
cp $PKG_DIR/scripts/09_crond $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
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user