←  [EN] Enduser support

Forums

»

PPanels Description/Function

's foto dweeb4 19 aug 2007

Is there a list of PPanels with descriptions of functionality?
Citeren

's foto hemertje 19 aug 2007

have a look in your box

/var/etc/ppanels/sample_ppanel.xml

Citeren

's foto dweeb4 19 aug 2007

Yes that describes how it works, thanks, but what I was looking for was a description of the functionality of the ppanels that I can download - what does each downloadable ppanel do?
Citeren

's foto hemertje 19 aug 2007

see the title, that isnt too hard to understand is it?
else why dont you have a look for a few seconds...
Citeren

's foto jonc 30 aug 2007

It is well described in /var/etc/ppanels/sample_ppanel.xml and we have written one we include in all images that includes;

Internet tools (man this saves so much time guessing)
News from us to the users - new asian satellites, channels, dns changes on the Thai WAN etc
Smart card set up
Nagra 1 set up
Updates and truckloads more besides - the public beta are here http://www.jsat.tv/files/panel.htm

Enjoy
Citeren

's foto ims 1 jan 2008

PPanels are nice, but how I can make automatically exiting PPanel+PLi_panel, when function in own PPanel is ending ?
Citeren

's foto dAF2000 1 jan 2008

PPanels are nice, but how I can make automatically exiting PPanel+PLi_panel, when function in own PPanel is ending ?

From PPanel_tutorial.xml:

<!-- About "quit"
For almost each xml tag, it's possible to close, restart or hide the PPanel afterwards.
Use quit="restart" to restart the PPanel again. This may be needed if the xml file of
the PPanel has been changed and must be reloaded, for example in "Download latest menu".
Use quit="exit" to exit the PPanel and return to the application which called the PPanel.
Use quit="hide" to hide the PPanel and show a small "press OK" button in the left top corner
of the screen. After pressing OK the PPanel will be shown again. This is very useful for <media>.

Example:

<execute name="Download latest menu"
condition="[ ! -f /var/etc/ppanelautodownload ]"
target="ppanelupdate.sh http://pli.dreamvcr....software.tar.gz /; rm -f /tmp/ppanelrefresh"
confirmation="Are you sure to download the latest menu?"
quit="restart"/>
-->

Citeren

's foto ims 1 jan 2008

Yes, I know this , but it doesnt work for me... still must "red-exit-exit"

<!-- Muj Samba.xml panel -->
    
<directory name="Samba - Iolite">
 
             <execute name="zakazat Samba"
             target="killall -9 smbd;
                     killall -9 nmbd;
                     sleep 1;
                     mv /usr/sbin/smbd /usr/sbin/smbd.old;
                     mv /usr/sbin/nmbd /usr/sbin/nmbd.old"
             helptext="smbd,nmbd -> smbd.old,nmbd.old"              
             confirmation="skutecne zakázat?"
             quit="exit"/>
             
             <separator/>
             
             <execute name="povolit Samba"
             target="mv /usr/sbin/smbd.old /usr/sbin/smbd;
                     mv /usr/sbin/nmbd.old /usr/sbin/nmbd;
                     smbd -D;
                     nmbd -D"
             helptext="smbd.old,nmbd.old -> smbd,nmbd"              
             confirmation="skutecne povolit?"
             quit="exit"/>
             
       
</directory>
Citeren

's foto dAF2000 2 jan 2008

Yep, that's right. It closes the current PPanel but can't close the screens before that.
Citeren

's foto ims 2 jan 2008

quit="exit" close nothing...
Citeren

's foto dAF2000 2 jan 2008

quit="exit" close nothing...

I'll check that.
Citeren

's foto dAF2000 2 jan 2008

quit="exit" close nothing...

I'll check that.

I've tested it. If you open your PPanel you can choose zakazat or povolit. If you choose one, it opens a screen which you need to close with red or exit. After that you will be back in "Installed PPanels", so it closes your own PPanel.

PPanel can't close the script output screen and can't close Installed PPanels. So without the "exit" you need a keypress extra. I can't do anything more about that.
Citeren

's foto ims 2 jan 2008

Thanks. It was my mystake ( I thought, that quit="exit" will closing output screen too).
Citeren

's foto ims 24 jan 2008

How can I use condition="[ ]"

for test f.eg: /proc/fs/cifs/DebugData ? ( /proc/fs/cifs/DebugData is 0 or 1 and can be displayed with: cat /proc/fs/cifs/DebugData )

Citeren

's foto dAF2000 25 jan 2008

"condition" just checks for the return value of the shell command: condition = "<shell command>". I think something like "grep 1 /proc/fs/cifs/DebugData" could work.
Citeren

's foto ims 25 jan 2008

I am afraid that it doesnt work... "cat /proc/fs/cifs/DebugData" or "grep 1 /proc/fs/cifs/DebugData" or grep with -q hasno effect in "condition" ...
Citeren