added crond and customd
This commit is contained in:
parent
b30e9fb713
commit
24557a666c
@ -2,7 +2,7 @@
|
||||
# SATIP AXE firmware configuration
|
||||
#
|
||||
|
||||
CFGVER="8"
|
||||
CFGVER="9"
|
||||
HOSTNAME="satip-axe"
|
||||
KMODULES="drivers/usb/serial/cp210x.ko drivers/usb/serial/pl2303.ko drivers/usb/serial/ftdi_sio.ko"
|
||||
|
||||
@ -61,6 +61,11 @@ MINISATIP_OPTS=""
|
||||
#
|
||||
INETD="yes"
|
||||
|
||||
#
|
||||
# crond
|
||||
#
|
||||
CROND="yes"
|
||||
|
||||
#
|
||||
# nfsd v3
|
||||
#
|
||||
@ -71,3 +76,8 @@ NFSD_HOTPLUG_EXPORT="*" # replace with host or subnet, '*' = world
|
||||
# oscamd
|
||||
#
|
||||
OSCAMD="yes"
|
||||
|
||||
#
|
||||
# custom daemon/service/setup executed from sysinit
|
||||
#
|
||||
#CUSTOMD="/etc/sysconfig/myboot"
|
||||
|
13
fs-add/etc/init.d/crond
Executable file
13
fs-add/etc/init.d/crond
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
test -r /etc/sysconfig/config && . /etc/sysconfig/config
|
||||
|
||||
if test "$CROND" != "yes"; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p /var/spool/cron
|
||||
mkdir /etc/sysconfig/crontabs
|
||||
ln -sf /etc/sysconfig/crontabs /var/spool/cron/crontabs
|
||||
|
||||
exec /usr/sbin/crond -f -S -c /etc/sysconfig/crontabs
|
11
fs-add/etc/init.d/customd
Executable file
11
fs-add/etc/init.d/customd
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
test -r /etc/sysconfig/config && . /etc/sysconfig/config
|
||||
|
||||
if test "$CUSTOMD" != "yes"; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if test -x "${CUSTOMD}" ; then
|
||||
. "${CUSTOMD}"
|
||||
fi
|
@ -16,8 +16,12 @@ ttyAS0::askfirst:/bin/sh
|
||||
::once:/etc/init.d/dropbear
|
||||
# inetd
|
||||
::once:/etc/init.d/inetd
|
||||
# crond
|
||||
::once:/etc/init.d/crond
|
||||
# oscamd
|
||||
::once:/etc/init.d/oscamd
|
||||
# custom service
|
||||
::once:/etc/init.d/customd
|
||||
# Others
|
||||
::ctrlaltdel:/sbin/reboot
|
||||
::shutdown:/sbin/swapoff -a
|
||||
|
Loading…
Reference in New Issue
Block a user