PDA

View Full Version : Automatic reboot



jcm193
14-03-11, 12:48
Hi does anyone know if there is a plugin that is compatible with the tm800 that will enable me to reboot the receiver at a set time thanks

pooface
14-03-11, 13:21
Had a quick read about, and cron is apparantly already up and running in tm800 from what I can see. verify this by running "ps" in telnet... If so, then just create a crontab entry to reboot it...

jcm193
14-03-11, 17:08
I have no idea what you mean pooface any chance you can explain what you mean in lay men's terms please.I did find a post on another site regarding a script for a dreambox and placing in var/script do you think this will work on the tm 800 thanks

pooface
14-03-11, 18:57
I have no idea what you mean pooface any chance you can explain what you mean in lay men's terms please.I did find a post on another site regarding a script for a dreambox and placing in var/script do you think this will work on the tm 800 thanks

If cron is running on the tm800, you will need to edit the crontab to tell it to run the script ...

First off, telnet in to the tm800, and run ps. e.g. on the et9000 ViX image, this is an excerpt from running ps:


root@et9000:~# ps
PID USER VSZ STAT COMMAND
1 root 1720 S init [3]
2 root 0 SW [migration/0]
3 root 0 SWN [ksoftirqd/0]
4 root 0 SW [migration/1]
5 root 0 SWN [ksoftirqd/1]
6 root 0 SW< [events/0]
7 root 0 SW< [events/1]
8 root 0 SW< [khelper]
9 root 0 SW< [kthread]
10 root 0 SW< [kblockd/0]
397 messageb 2680 S /usr/bin/dbus-daemon --system
406 root 2344 S /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host
413 root 2232 S /usr/sbin/crond -c /etc/cron/crontabs
418 root 1828 S /usr/sbin/inetd
434 root 0 SW [nfsd]
435 root 0 SW [nfsd]


I cut out a lot of the running processes, just to highlight which is needed. If this is running, we can create a script to tell it to run, for example, at 4am every morning...

digidude
14-03-11, 19:31
if only the tm800 was that easy :(


TM800@/]# ps
PID TTY TIME CMD
1680 pts/0 00:00:00 sh
1692 pts/0 00:00:00 ps
TM800@/]#

pooface
14-03-11, 20:58
if only the tm800 was that easy :(


TM800@/]# ps
PID TTY TIME CMD
1680 pts/0 00:00:00 sh
1692 pts/0 00:00:00 ps
TM800@/]#


d'oh!!! Does it come up if you run the "top" command?


Mem: 137588K used, 246216K free, 0K shrd, 52K buff, 14996K cached
CPU: 0% usr 0% sys 0% nic 99% idle 0% io 0% irq 0% sirq
Load average: 0.00 0.00 0.00 2/88 739
PID PPID USER STAT VSZ %MEM %CPU COMMAND
489 486 root S 130m 35% 0% /usr/bin/enigma2
739 712 root R 2548 1% 0% top
711 418 root S 2552 1% 0% telnetd
502 1 root S 20760 5% 0% /usr/softcams/CCcam.2.2.1
457 1 root S 13436 3% 0% /usr/sbin/smbd
460 457 root S 13436 3% 0% /usr/sbin/smbd
461 1 root S 6824 2% 0% /usr/sbin/nmbd
482 1 avahi S 3364 1% 0% avahi-daemon: running [et9000.local]
483 482 avahi S 3264 1% 0% avahi-daemon: chroot helper
397 1 messageb S 2680 1% 0% /usr/bin/dbus-daemon --system
712 711 root S 2548 1% 0% -sh
449 1 root S 2460 1% 0% /usr/sbin/rpc.statd
445 1 root S 2396 1% 0% /usr/sbin/rpc.mountd -f /etc/exports
406 1 root S 2344 1% 0% /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host_key -p 22
486 1 root S 2232 1% 0% /bin/sh /usr/bin/enigma2.sh
468 1 root S 2232 1% 0% /sbin/klogd -n
413 1 root S 2232 1% 0% /usr/sbin/crond -c /etc/cron/crontabs
466 1 root S 2232 1% 0% /sbin/syslogd -n -O /var/log/messages -s 32 -b 1 -m 20
366 1 root S 2088 1% 0% rpc.statd --no-notify
418 1 root S 1828 0% 0% /usr/sbin/inetd
1 0 root S 1720 0% 0% init [3]
358 1 daemon S 1704 0% 0% /sbin/portmap
367 9 root SW< 0 0% 0% [rpciod/0]
35 1 root SWN 0 0% 0% [jffs2_gcd_mtd3]
148 1 root SW 0 0% 0% [sched_high]
6 1 root SW< 0 0% 0% [events/0]
13 9 root SW 0 0% 0% [pdflush]
7 1 root SW< 0 0% 0% [events/1]
3 1 root SWN 0 0% 0% [ksoftirqd/0]
32 9 root SW< 0 0% 0% [usb-storage]
14 9 root SW 0 0% 0% [pdflush]
15 9 root SW< 0 0% 0% [kswapd0]

jcm193
14-03-11, 21:13
Thanks for the info sadly the info given is far to complicated for me implement