LSCOutdoor1080P/mmc/custom.sh
2022-12-08 17:14:27 -05:00

14 lines
327 B
Bash

#!/bin/sh
# Mark that this runs
if [ ! -e /tmp/custom ]; then
touch /tmp/custom
telnetd -p 24 -l /bin/sh
/tmp/sd/busybox httpd -c /tmp/sd/httpd.conf -h /tmp/sd -p 8080
fi
if [ ! -e /tmp/cleanup`date +%Y%m%d` ]; then
rm -rf /tmp/cleanup*
touch /tmp/cleanup`date +%Y%m%d`
/tmp/sd/cgi-bin/cleanup.cgi > /tmp/cleanup.log
fi