add cron support

This commit is contained in:
Stefan Saraev 2013-01-19 20:57:06 +02:00
parent c1c99b34d5
commit 288080c383
14 changed files with 84 additions and 0 deletions

View File

@ -31,6 +31,7 @@
<setting id="SAMBA_SECURITY" value="false" />
<setting id="SAMBA_USERNAME" value="openelec" />
<setting id="SAMBA_PASSWORD" value="openelec" />
<setting id="CROND_START" value="false" />
<setting id="UPDATE_AUTO" value="manual" />
<setting id="X11_KEYMAP" value="us" />
<setting id="X11_KEYMAP2" value="-none-" />

View File

@ -46,4 +46,8 @@
<string id="5020">SSH</string>
<string id="5021">Start ssh server at boot</string>
<string id="5022">Disable password authentication</string>
<string id="5030">crond</string>
<string id="5031">Start cron daemon at boot</string>
</strings>

View File

@ -78,5 +78,8 @@
<setting type="sep" />
<setting id="SSHD_START" type="bool" label="5021" default="false" />
<setting id="SSHD_DISABLE_PW_AUTH" type="bool" label="5022" default="false" visible="eq(-1,true)"/>
<setting label="5030" type="lsep"/>
<setting type="sep" />
<setting id="CROND_START" type="bool" label="5031" default="false" />
</category>
</settings>

View File

@ -0,0 +1,40 @@
################################################################################
# This file is part of OpenELEC - http://www.openelec.tv
# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv)
#
# This Program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This Program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with OpenELEC.tv; see the file COPYING. If not, write to
# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA.
# http://www.gnu.org/copyleft/gpl.html
################################################################################
#
# start syslog daemon
#
# runlevels: openelec, installer, textmode
(
if [ -f /var/config/settings.conf ]; then
. /var/config/settings.conf
fi
if [ "$CROND_START" == "true" ]; then
progress "Starting cront daemon"
if [ ! -d "/storage/.cache/cron/crontabs" ] ; then
mkdir -p /storage/.cache/cron/crontabs
fi
crond -b
fi
)&

View File

@ -68,3 +68,12 @@ 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
mkdir -p $INSTALL/etc/init.d
cp $PKG_DIR/init.d.optional/09_crond $INSTALL/etc/init.d/
else
rm -f $INSTALL/sbin/crond
rm -f $INSTALL/bin/crontab
fi

View File

@ -330,6 +330,9 @@
# build and install nano text editor (yes / no)
NANO_EDITOR="yes"
# cron support (yes / no)
CRON_SUPPORT="yes"
# Coreboot support (yes / no)
COREBOOT="no"

View File

@ -329,6 +329,9 @@
# build and install nano text editor (yes / no)
NANO_EDITOR="yes"
# cron support (yes / no)
CRON_SUPPORT="yes"
# Coreboot support (yes / no)
COREBOOT="no"

View File

@ -329,6 +329,9 @@
# build and install nano text editor (yes / no)
NANO_EDITOR="yes"
# cron support (yes / no)
CRON_SUPPORT="yes"
# Coreboot support (yes / no)
COREBOOT="no"

View File

@ -329,6 +329,9 @@
# build and install nano text editor (yes / no)
NANO_EDITOR="yes"
# cron support (yes / no)
CRON_SUPPORT="yes"
# Coreboot support (yes / no)
COREBOOT="no"

View File

@ -329,6 +329,9 @@
# build and install nano text editor (yes / no)
NANO_EDITOR="yes"
# cron support (yes / no)
CRON_SUPPORT="yes"
# Coreboot support (yes / no)
COREBOOT="no"

View File

@ -329,6 +329,9 @@
# build and install nano text editor (yes / no)
NANO_EDITOR="yes"
# cron support (yes / no)
CRON_SUPPORT="yes"
# Coreboot support (yes / no)
COREBOOT="no"

View File

@ -329,6 +329,9 @@
# build and install nano text editor (yes / no)
NANO_EDITOR="yes"
# cron support (yes / no)
CRON_SUPPORT="yes"
# Coreboot support (yes / no)
COREBOOT="no"

View File

@ -329,6 +329,9 @@
# build and install nano text editor (yes / no)
NANO_EDITOR="yes"
# cron support (yes / no)
CRON_SUPPORT="yes"
# Coreboot support (yes / no)
COREBOOT="no"

View File

@ -324,6 +324,9 @@
# build and install nano text editor (yes / no)
NANO_EDITOR="yes"
# cron support (yes / no)
CRON_SUPPORT="yes"
# Coreboot support (yes / no)
COREBOOT="no"