Quote:
Originally Posted by fennectech
Code:
menu_item : main : Toggle USB OTG : cmd_output : 500 : quiet : test -e /tmp/otg_enabled
chain_success : skip : 4
chain_always : cmd_spawn : quiet: touch /tmp/otg_enabled
chain_always : cmd_spawn : quiet: mount -t debugfs none /sys/kernel/debug
chain_always : cmd_spawn : quiet: echo host > /sys/kernel/debug/ci_hdrc.0/role
chain_always : dbg_toast : USB OTG IS ENABLED
chain_failure : skip : 3
chain_always : cmd_spawn : quiet: rm /tmp/otg_enabled
chain_always : cmd_spawn : quiet: echo gadget > /sys/kernel/debug/ci_hdrc.0/role
chain_always : dbg_toast : USB OTG IS DISABLED
|
Quote:
Originally Posted by fennectech
|
I believe the problem is you forgot to add a chain_always to skip the remaining actions after the first section executes.