Installscript-command-cmds

Aus VDR Wiki
(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
(M)
Zeile 1: Zeile 1:
 
==Beschreibung==
 
==Beschreibung==
In '''../command-cmds''' befinden sich die Einstellungen folgender Konfigurations-Dateien.
+
In '''../command-cmds''' befinden sich Scripte, welche die Konfigurations Dateien erstellen.
  
 
* [[commands.conf]]
 
* [[commands.conf]]
Zeile 6: Zeile 6:
 
* [[timercmds.conf]]
 
* [[timercmds.conf]]
  
Im [[admin-plugin]] kann man sich die Sachen die benötigt werden zusammen stellen.
+
Format (Datei):
 +
 
 +
'''<DATEI>-<NUM>-<NAME>'''.cmd
 +
 
 +
Format (Head):
 +
 
 +
START="0"            # 0 = inactiv / 1 = activ
 +
CHECK=$(true)        # tests
 +
 
 +
Das ganze kann im [[admin-plugin]] aktiviert bzw deaktiviert werden. ('''0 = inactiv, 1 = activ''')
  
 
[[Bild:installscript-admin-command-cmds.jpg|thumb|none|''kurze beschreibung'']]
 
[[Bild:installscript-admin-command-cmds.jpg|thumb|none|''kurze beschreibung'']]
 +
 +
Alles weitere sollte im '''syslog''' ersichtlich sein. (vorrausgesetzt '''$VDR_LOG -gt 0''')
 +
 +
'START'='1' -> '../command-cmds/commands-01-system.cmd'
 +
'START'='1' -> '../command-cmds/commands-02-vdr.cmd'
 +
'START'='0' -> '../command-cmds/reccmds-01-noad.cmd'
 +
'START'='0' -> '../command-cmds/reccmds-02-cutinplace.cmd'
 +
'START'='0' -> '../command-cmds/timercmds-01-epgsearch.cmd'
 +
 +
''Rest'' wird per ... an benannte Dateien angehangen.
 +
 +
==Bsp (1)==
 +
Beispiel für [[rtorrent]].
 +
 +
{{Box Datei| ../commands-03-rtorrent.cmd |
 +
<pre>
 +
#!/bin/sh
 +
#
 +
# example script
 +
 +
START="0"
 +
CHECK=$(which rtorrent >/dev/null 2>&1)
 +
 +
echo " --- "$"r t o r r e n t"" --- : echo"
 +
echo " "$"Run rtorrent""            : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent start"
 +
echo " "$"Status""                  : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent log"
 +
echo " "$"5 KB + (up)""            : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent key s"
 +
echo " "$"5 KB - (up)""            : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent key x"
 +
echo " "$"Stop rtorrent""?          : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent stop"
 +
</pre>
 +
}}
  
 
[[Kategorie:Installscript]]
 
[[Kategorie:Installscript]]

Version vom 7. September 2006, 20:59 Uhr

Beschreibung

In ../command-cmds befinden sich Scripte, welche die Konfigurations Dateien erstellen.

Format (Datei):

<DATEI>-<NUM>-<NAME>.cmd

Format (Head):

START="0"             # 0 = inactiv / 1 = activ
CHECK=$(true)         # tests

Das ganze kann im admin-plugin aktiviert bzw deaktiviert werden. (0 = inactiv, 1 = activ)

kurze beschreibung

Alles weitere sollte im syslog ersichtlich sein. (vorrausgesetzt $VDR_LOG -gt 0)

'START'='1' -> '../command-cmds/commands-01-system.cmd'
'START'='1' -> '../command-cmds/commands-02-vdr.cmd'
'START'='0' -> '../command-cmds/reccmds-01-noad.cmd'
'START'='0' -> '../command-cmds/reccmds-02-cutinplace.cmd'
'START'='0' -> '../command-cmds/timercmds-01-epgsearch.cmd'

Rest wird per ... an benannte Dateien angehangen.

Bsp (1)

Beispiel für rtorrent.

Datei
../commands-03-rtorrent.cmd
#!/bin/sh
#
# example script

START="0"
CHECK=$(which rtorrent >/dev/null 2>&1)

echo " --- "$"r t o r r e n t"" --- : echo"
echo " "$"Run rtorrent""            : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent start"
echo " "$"Status""                  : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent log"
echo " "$"5 KB + (up)""             : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent key s"
echo " "$"5 KB - (up)""             : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent key x"
echo " "$"Stop rtorrent""?          : cd \"$ADMDIR/start-cmds/rc\" ; sh rtorrent stop"