VDR para el Siemens Gigaset M740/M750
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.
Proyecto movido a GitHub

Miér 7 Abr 2021 - 19:23 por bittor

Comentarios: 0

Buscar
 
 

Resultados por:
 


Rechercher Búsqueda avanzada

Flujo RSS


Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 



integrate a script C to vdr-ng

2 participantes

Ir abajo

integrate a script C to vdr-ng Empty integrate a script C to vdr-ng

Mensaje por joopa Miér 1 Sep 2010 - 21:38

Hello,

i would intented to start every minute by crond, a script that tests the contents of timers.conf.
when a timer is going to be active an arbitary command (in my case ether-wake) is executed some minutes before to power on my files server.

Where do i place this script C, in the directories of svn, for compile it with vdr-ng ?

http://home.pages.at/linux/vdron.tar.gz
Código:
Usage: %s <min> <timers.conf> <command>
Thanks by advance for you help.

joopa

Cantidad de envíos : 14
Fecha de inscripción : 02/09/2009
Edad : 55
Localización : France

Volver arriba Ir abajo

integrate a script C to vdr-ng Empty Re: integrate a script C to vdr-ng

Mensaje por bittor Jue 2 Sep 2010 - 9:00

Hi,

You can copy vdron.c to:
VDR-NG-FW/buildin/tool-box-extra

Edit Makefile in that dir adding "vdron" to "PRGS":
Código:
PRGS := genindex io-test vdron
and add this below of "io-test_LDADD :=" line:
Código:
vdron_OBJS := vdron.o
vdron_LDADD :=

Run in VDR-NG-FW dir:
Código:
make distclean-tool-box-extra
make

Now you have a firmware with vdron binary included in it.
bittor
bittor
Desarrollador

Cantidad de envíos : 3661
Fecha de inscripción : 25/06/2008
Localización : Zaragoza

https://github.com/bittor7x0/VDR-M7x0

Volver arriba Ir abajo

integrate a script C to vdr-ng Empty Re: integrate a script C to vdr-ng

Mensaje por joopa Jue 2 Sep 2010 - 13:14

thank you very much bittor, thank you very much, I'd return soon Idea

joopa

Cantidad de envíos : 14
Fecha de inscripción : 02/09/2009
Edad : 55
Localización : France

Volver arriba Ir abajo

integrate a script C to vdr-ng Empty Re: integrate a script C to vdr-ng

Mensaje por joopa Vie 26 Nov 2010 - 7:49

i have compiled the firmware with vdron. ok->no error.
but i don't find the binary on the vdr.
normaly /sbin ?

joopa

Cantidad de envíos : 14
Fecha de inscripción : 02/09/2009
Edad : 55
Localización : France

Volver arriba Ir abajo

integrate a script C to vdr-ng Empty Re: integrate a script C to vdr-ng

Mensaje por bittor Vie 26 Nov 2010 - 11:24

If you want add it to firmware, you have that edit VDR-NG-FW/rootfs-file-lists/tool-box-extra.lst and add:
Código:
usr/bin/vdron  usr/bin/vdron  f 755 0 0 - - - - -
usr/bin/vdron  -              s  - - - - - - - -

The path for this program in firmware is /usr/bin/vdron.
bittor
bittor
Desarrollador

Cantidad de envíos : 3661
Fecha de inscripción : 25/06/2008
Localización : Zaragoza

https://github.com/bittor7x0/VDR-M7x0

Volver arriba Ir abajo

integrate a script C to vdr-ng Empty Re: integrate a script C to vdr-ng

Mensaje por joopa Sáb 4 Dic 2010 - 19:30

bittor,

I integrate it in the firmware at the next compilation, because with VDR-NG-FW/build/tool-box-extra/vdron , i've tested it and i'm very happy for the result.
-> if there is a scheduled record (between 0 and 3 minutes), the script power on my server, and after a timer (boot time), i mount the nfs share.

Now, i thought for the umount and stop the server when there isn't current record.
But i think, the hardest part is passed.

Many thanks for your help, i will explain it in the post inicio un servidor de archivos (WOL) antes del comienzo de una grabación

Beautiful day for the planet, and for me ! Smile

joopa

Cantidad de envíos : 14
Fecha de inscripción : 02/09/2009
Edad : 55
Localización : France

Volver arriba Ir abajo

integrate a script C to vdr-ng Empty Re: integrate a script C to vdr-ng

Mensaje por Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.