View Single Post
Old 02-09-2017, 06:54 AM   #9
anunay
Member
anunay began at the beginning.
 
Posts: 21
Karma: 10
Join Date: Jan 2017
Device: Kindle KT2
Question

Some said to try and not to cry
I tried to troubleshoot the script and as far as i can understand the problem is in these lines of code
Code:
#!/bin/sh
OTA=com.lab126.blanket.ota
LOG=/mnt/us/Komic_update_log.txt
LOCALSTORAGE=/mnt/us/extensions/komic/bin/resource/LocalStorage/file__0.localstorage
GALLERY="/mnt/us/documents/Komic"
OLDGALLERY="/mnt/us/documents/Gallery"
KOMIC="/mnt/us/extensions/komic"
UPSTART="/etc/upstart/komic_event_handler.conf"

progress()
{
	lipc-send-event $OTA otaSplashProgress -i $1
	local x=48
	local y=11
	eips 0 $y "                                                ";
	eips $((($x - $(expr length "$2")) / 2)) $y "$2"
	sleep 3
}

fail()
{
	lipc-send-event $OTA otaSplashError -s "${1}"
	sleep 10
	exit 1;
}

progress 25 "Checking if Komic is installed"
varkomic=$(sqlite3 /var/local/appreg.db "select handlerId from handlerIds where handlerId='com.silver18.komic001'")
varmemory=$(sqlite3 /var/local/appreg.db "select handlerId from properties where handlerId='com.silver18.komic001' and name='memUnloadLevel'")
mesquite=$(sqlite3 /var/local/appreg.db "select value from properties where handlerId='com.silver18.komic001' and name='command'" | grep mesquite)
varbaseus=$(sqlite3 /var/local/appreg.db "select value from properties where handlerId='com.silver18.komic001' and name='command'" | grep base)
Because i see "Checking if Komic is installed" on the screen and then it returns the error code + THE LOG FILE IS NOT GENERATED

There are no model locks in the ffs file.
anunay is offline   Reply With Quote