PPanel toolkit

digidude

Sheep worrier.
VIP Member
Joined
Aug 8, 2001
Messages
24,754
Reaction score
3,741
Location
The edge.
Big thanks to jimux for the following

For those of you impatient to get functions working I have created a set of tools that run off the ppanel. Just unzip the attached file and place it in /etc/ppanels directory. Then access via the yellow button.

Most of the included tools are self explanatory except perhaps 'modify fstab'. There is a problem with the current image in that the device mounting sequence is incorrect. The front usb port takes priority over an internal disk drive so if a usb memory stick is present at boot up time it becomes/dev/sda and the internal disk becomes /dev/sdb. If there is no usb stick then the internal drive becomes /dev/sda. in addition to this the /ect/fstab file defines /dev/sda with the result that both storage devices are refferenced by the same name. Removing the last line of the fstab resolves some of the problems associated with this.

Finally this tool kit is specific to the current image on the TM800HD and may need modifying for later images. Many of the tools will work on any enigma2 box which uses a ppanel, but since i have only tested on a TM800HD such use is entirely at your own risk.

The tool kit includes:-

Disk temperature reports
one off or regularly to a log file
Disk SMART parameters
summary
detailed test report for SATA disks
Modify fstab

Swap file management
mount swapfiles from disk or disk-1
unmount swapfiles
find existing swapfiles
report active swapfiles
delete swapfiles
create 64Mb swapfiles on usb or internal disk

reports and tasks
List contents of /tmp directory
Disk %age use
Installed devices (not necessarily mounted)
Mounted devices
Running processes
Network connections
Available memory
User environment
Automount info
Force ethernet connection
Show ethernet connection state and type.
Check hardware clock
Reset hardward clock from kernel system clock.
Check software clock
Process management
Turn task manager on/off
List scheduled tasks
Remove scheduled tasks
set up crontab for user root
sample task - schedule recording of disk temperature
View/truncate report for disk temperatures

Real techie reports
Display kernel parameters
Display loaded kernel modules
Display loaded Enigma python hooks

Added 28June2010:
full usb bus and device report
Linux version loaded
hardware processor
Detailed memory consumption

added 1st August 2010 ver 6.5.0
experimental Enigma2 wget functions
Force reread channel data from file
Kill DHCP
patch boot sequence to fixed IP *
patch boot sequence to load 64Mb swapfile
Force /devf/sda1 mount as /media/disk

notes
* Force IP requires the atteched /usr/sbin/Set_IP.sh (dont forget to chmod 777)

The screen output of the wget functions is in xml format and a bit naff, but I've put them in rather than add separate script files as they illustrate the method and some crude output formatting.
 
I've been using this for a few weeks now, and it's very helpful.
 
Back
Top