14 lines
327 B
Bash
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
|