2024-02-15 22:07:35 +01:00
|
|
|
. /link/shell/util/func.sh
|
|
|
|
jopen /link/config/service.json
|
|
|
|
|
2024-02-15 22:07:39 +01:00
|
|
|
/link/bin/rtc -g time
|
|
|
|
|
2024-02-15 22:07:35 +01:00
|
|
|
if [ `jget telnet` == "true" ]; then
|
|
|
|
/usr/sbin/telnetd
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ `jget ssh` == "true" ] && ! procExists sshd; then
|
|
|
|
if [ ! -d /var/empty ];then
|
|
|
|
mkdir -p /var/empty
|
|
|
|
fi
|
|
|
|
chown root:root /var/empty
|
|
|
|
/usr/local/sbin/sshd
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ `jget php` == "true" ]; then
|
|
|
|
/usr/php/sbin/php-fpm -R -p /usr/php -c /usr/php/etc/php.ini
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ `jget nginx` == "true" ]; then
|
|
|
|
/usr/nginx/sbin/nginx -p /usr/nginx
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ `jget crond` == "true" ]; then
|
2024-02-15 22:07:37 +01:00
|
|
|
if [ ! -f /var/spool/cron/crontabs/root ];then
|
|
|
|
touch /var/spool/cron/crontabs/root
|
|
|
|
echo "" >> /var/spool/cron/crontabs/root
|
|
|
|
echo "" >> /var/spool/cron/crontabs/root
|
|
|
|
echo "" >> /var/spool/cron/crontabs/root
|
|
|
|
fi
|
|
|
|
chown -R root:root /var/spool
|
2024-02-15 22:07:35 +01:00
|
|
|
/usr/sbin/crond -d 8
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ `jget onvif` == "true" ]; then
|
|
|
|
/link/shell/onvif.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ `jget ndi` == "true" ]; then
|
|
|
|
/link/shell/ndi.sh
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ `jget sls` == "true" ]; then
|
|
|
|
/link/bin/sls -c /link/config/sls.conf &
|
|
|
|
fi
|
|
|
|
|
|
|
|
/link/shell/ntp.sh &
|
2024-02-15 22:07:44 +01:00
|
|
|
|
|
|
|
frp_enable=$(cat /link/config/rproxy/frp_enable |awk '{printf "%s",$1}')
|
|
|
|
if [ "$frp_enable" == "true" ]; then
|
|
|
|
/link/shell/frp.sh &
|
|
|
|
fi
|