|
softcam
The softcam is alternate emu/client/server management for stormbreaker.
The build-in emucamd (controld) has some faults:
- all is hidden
- no way to define some actions during managing emu/client/server
- no way to define timeouts
- ...
The new softcam is prepared for work in other way. It is using ScriptService and will
work good as soon as SS will work too. The true is , SS is not bug free demon.
The known bugs in SS:
- sometimes one remote control button press it interpet as double press
- three use of it's command 'reload' is failing enigma
- after some use of SS you can see xxxx.xml menu can not be loaded ... this is bug of not run at all it's 'runscript' command
Ok. Stop write about ScriptService.
How is softcam working ?
It lets to separate manage emu client, card server, spider server and 2 applications defined by user.
If all 5 apps will be defined , they will be called during box boot in order : card server, spider, client, user apps.
Softcam is using :
- /var/etc/softcam/ directory. There you can find:
curr_client,curr_server,curr_spider,curr_user01,cu rr_user02 - all define current applications selected in softcam
log_client,log_server,log_spider,log_user - all define if application should be logged in /hdd/logs (possible only if HDD is mounted)
- /var/etc/softcam/client[server|spider|user]
There you will find scripts in all these directories. The scripts create list of possible to select apps in softcam.
If the script does not have an estension - its name is the same like file in /var/bin and it is generic script.
The softcam will get its name and will start this name in /var/bin and will kill this name in memory.
If this is name with extension .sh (name.sh) it is script to run (has to be chmod 755 name.sh !!!).
The softcam will start name appication calling:
/var/etc/softcam/client[server|spider|user]/name.sh start
and kill this app calling:
/var/etc/softcam/client[server|spider|user]/name.sh stop
(Each script has second calling param for logging)
The sample script name.sh:
#!/bin/sh
# $1- operation signal, $2- logging configuration
case "$1" in
start)
/var/bin/anyhelperapp& # run if you need it
rm -f /tmp/something
sleep 2
/var/bin/name $2 & # your main app
;;
stop)
killall -9 name
sleep 3
killall -9 anyhelperapp
sleep 1
;;
*)
exit 1
;;
esac
exit 0
The script is ready to define all you want to run, kill, test, change in linux system of your box.
The sample scripts are in /softcam/ subdir in zip.
The softcam can work in 2 modes:
- advanced
Selecting new item on emu/client/server/app list will call submenu , new selected emu/client/server/app will have to be restarted menual by select reset menu option.
Advanced is using reload SS command.
- short
If you will call list of emu/client/server/app and select on item , it will be at one run/restarted and all menus will be closed.
Short is not using reload SS command.
Instalation:
Replace (using files from zip):
- /var/etc/init2 ( next run: killall init2 ; /var/etc/init2& )
- /var/tuxbox/config/m_usermenu.xml
Copy:
- /var/bin/menu_softcam.sh ( next run: chmod 755 /var/bin/menu_softcam.sh )
Use blue panel and set common interface as default emu.
Call user menu and in softcam init it.
(Now you can define own scripts with extension sh , generic softcam will let to add from menu)
Call second time softcam menu and use it.
02.04.2006 Tom0000
Last edited by Tom0000 : 04-02-2006 at 06:45 PM.
|