Auto login to captive portal
Hi Ravi,
This is not a piSignage query, but overall a linux query related to run piSignage successfully, so can you see if you can help?
I have a screen wherein the player has to login to a captive portal every 24 hours.
First of all I'm not able to autologin via curl command in the rc.local during bootup but if I run rc.local manually, it does login.
After the bootup login works, I can set to auto reboot the player every 24 hours
Output of my rc.local file:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
curl -d "username=myusername&password=mypassword&submit=Login" http://captiveportalurl.com/login
exit 0
-
Not sure how much of these googled links help, but you could also try other startup programs like systemd etc.
https://stackoverflow.com/questions/7783341/run-script-with-rc-local-script-works-but-not-at-boot
Please sign in to leave a comment.
Comments
3 comments