bobertuk wrote: 
> Thanks ralphy, custom firmware installed and working well so far.
> 
> I want to set up cron to reboot my radio every day but I'm not sure how
> to do that with a busybox device. I'm was familiar with VI and full
> blown UNIX cron and crontab -e (from many years ago!) but my poor old
> brain isn't as agile as it used to be. Do I need to set environment or
> will a simple single line entry entry work?
> 
> As an example a simple entry like this...
> 0 5 *   *   *    /reboot
> 
> in this instance to reboot every day at 5am.
> 
> Thanks
> 

The radio is the same

run *crontab -e* and vi will be started

press the letter *i*

copy and paste the following line into vi.


Code:
--------------------
    0 5 * * * /sbin/reboot
--------------------


press the escape key

then type *:wq*

run *crontab -l* to display the cron job.

I have a script on my radio that just restarts squeezeplay twice a month
to keep the radio from rebooting every ~21days from the timer variable
overflow issue.

Unfortunately it requires disabling the watchdog timer for the
squeezeplay process id.  I'll eventually make it available but it's
still too early days for that.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111663

_______________________________________________
Radio mailing list
Radio@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/radio

Reply via email to