Attach vb-event on brick start/stop
Bug #773478 reported by
Abbakus
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Virtualbricks |
Fix Released
|
Medium
|
Abbakus |
Bug Description
Can be useful to have a vb-event per-brick attached to the bricks start/stop event.
This event should be configurable via GUI as well as vb-shell.
Changed in virtualbrick: | |
assignee: | nobody → Abbakus (abbakus) |
milestone: | none → 0.4 |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in virtualbrick: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Partially implemented on revision 249: (command line only)
>switch_name config pon_vbevent= event_name event_name2
>switch_name config poff_vbevent=
The event can be a real-shell event, so it's possibile to add a script file to execute (as requested by Francesco).
For example:
>new event event_name
>event_name config addsh ~/myscript.sh
>event_name config delay=3
>switch_name on //switch_name is started and event_name is started too. After 3 seconds ~/myscript.sh is executed.
>switch_name off //switch_name is started and event_name2 is started.
>switch_name config pon_vbevent= //power on event is cleared