View Single Post
Old 05-09-2013, 03:33 AM   #89
stepk
Groupie
stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.stepk ought to be getting tired of karma fortunes by now.
 
Posts: 165
Karma: 593460
Join Date: Oct 2012
Device: K5 B011 5.3.2.1
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.

Last edited by stepk; 05-09-2013 at 06:39 AM.
stepk is offline   Reply With Quote