I am trying to allow my system (OSMC on RPi3) to run for only 90 minutes in day and then shutdown (to restrict my kids). I used shutdown -P 90 on rc.local. But if system is shutdown before 90 minutes the command is reexecuted on next restart, even if next day. If restarted again second time then it's okay. Is there a better way to accomplish this? Regards
Asked
Active
Viewed 45 times
If restarted again second time then it's okay. What exactly do you do and what happen? Maybe I'm wrong but the behaviour you describe it's the logical one, every time the RPi starts the commandshutdown -P 90is executed so the RPi will shutdown every 90 minutes after switched on, always. – migrc Mar 27 '18 at 06:30