2012-02-23 22:06:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2012-11-05 22:36:04 +00:00
|
|
|
[ -n "$QUERY_STRING" ] && rma="${QUERY_STRING##*=}" || rma=0
|
|
|
|
|
2012-02-23 22:06:39 +00:00
|
|
|
echo "Content-Type: text/plain"
|
|
|
|
echo
|
|
|
|
|
2012-11-05 22:36:04 +00:00
|
|
|
if [ "$rma" = 1 ]; then
|
2012-12-31 22:39:54 +00:00
|
|
|
modver="`cat /etc/modversion`"
|
|
|
|
if [ "$modver" -ge 215 ]; then
|
|
|
|
touch /var/lib/humaxtv_backup/.rma
|
|
|
|
else
|
|
|
|
touch /var/lib/humaxtv/.rma
|
|
|
|
fi
|
2012-11-05 22:36:04 +00:00
|
|
|
else
|
|
|
|
touch /var/lib/humaxtv/mod/_RESET_CUSTOM_FIRMWARE_ENVIRONMENT
|
|
|
|
fi
|
2012-02-23 22:06:39 +00:00
|
|
|
|