mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 06:06:43 +00:00
busybox: rework cron support
This commit is contained in:
parent
682f755dcd
commit
a07539b684
@ -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 \
|
||||||
|
@ -71,9 +71,3 @@ USER_PWD="`$ROOT/$TOOLCHAIN/bin/cryptpw -m sha512 $USER_PASSWORD`"
|
|||||||
|
|
||||||
mkdir -p $INSTALL/usr/www/error
|
mkdir -p $INSTALL/usr/www/error
|
||||||
echo "404" > $INSTALL/usr/www/error/404.html
|
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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user