<category name="Flash Dreambox Image">
<comment name=" ***WARNING***"/>
<comment name="Make sure your image has firstly been ftp'd"/>
<comment name="to the dreambox and is stored in /tmp or the"/>
<comment name="box will be erased but not flashed and will"/>
<comment name=" ***FAIL TO REBOOT***"/>
<separator/>
<execute name=" FLASH DREAMBOX"
target="echo - flashing image please wait until box reboots;cd /tmp && eraseall /dev/mtd/3 && cp *.img /dev/mtd/3 && reboot;***DO NOT UNPLUG***;"
helptext="Your image should be ftp'd to the /tmp directory before flashing"
confirmation="Are you sure you wish to flash the dreambox?"/>
<separator/>
<comment name=" ***WARNING***"/>
<comment name="Do NOT turn off once flashing starts - the box"/>
<comment name=" will reboot automatically"/>
</category>
I am quite rubbish at linux - is there a way I can check if the *.img file exists before flashing begins and if the file is not found in tmp the ppanel will exit with a message saying something like - image file not found cancelling flash procedure.
Cheers.