Code:
[root@kindle tmp]# vi /mnt/us/extensions/backdoorlock/bin/lock.sh
[ -f /etc/todo/handler_registry.conf ] &&../sbin/restart todo
Can you see the
../ in your copy? Vi on the kindle not on your dev PC.
The extra comma is the only issue in menu.json.
edit: OK, I checked the two dots in vim: they stand for a hard space character, 0xA0. It looks like a regular space character but it isn't and it becomes part of the file name. So "\0xA0/sbin/restart" isn't obviously found.
unlock.sh has the same problem
Code:
# grep -R "*" extensions/backdoorlock/*
extensions/backdoorlock/bin/unlock.sh:[ -f /etc/todo/handler_registry.conf ] &&*/sbin/restart todo
extensions/backdoorlock/bin/lock.sh:[ -f /etc/todo/handler_registry.conf ] &&*/sbin/restart todo
P.S. Notice how the forum software renders 0xA0 as a * character - which was included in my post #87 but maybe looked as a typo.