hello, pleas need help for install this script in vu+ 4k se
Webif must be activated in oscam.confand running.
install curl via opkg with: opkg install curl
Copy this script into /usr/script/, and set your box to run the script as offen as you like.
#!/bin/sh
while [ $(curl --digest -u'user:pass" "http://127.0.0.1:port/entitlements.html?label=Upper" | grep -c "tier") -lt 2 ]
do
curl --digest -u"user:pass" "http://127.0.0.1:port/status.html?action=restart&label=reader"
sleep 65
done
echo "reader ok"
Where user, pass and port is as configured in oscam.conf.
Reader can be either upper or lower.
Remember to grant access to 127.0.0.1 in oscam.conf