View Single Post
Old 09-03-2016, 08:28 AM   #5
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
The total "change"/addition to the code that nickel uses, is the following:



# ---------------- Tshering: insert menu begin
ksmroot=/adds/kbmenu
export ksmroot
installUpdate="TRUE"
if [ "$isarmhf" == "TRUE" ] && [ "$(sh $ksmroot/onstart/checkinstall.sh)" == "ok" ]; then

checkscript=$(sh -n $ksmroot/onstart/ksmhome.sh 2>&1)
if [ "$checkscript" == "" ]; then
$ksmroot/onstart/ksmhome.sh &
exit
fi

fi
# ---------------- Tshering: insert menu end

And for the USB:

# ---- Tshering start
if [ ! -e /bin/kobo_config.sh ]; then
PRODUCT="trilogy"
else
# ---- Tshering end
PRODUCT=`/bin/kobo_config.sh`;
# ---- Tshering start
fi
export PRODUCT
# ---- Tshering end

[ $PRODUCT != trilogy ] && PREFIX=$PRODUCT-

MODULE_LOADED=`lsmod | grep -c g_file_storage`


VENDOR_ID=0x2237

PLATFORM=freescale
if [ `dd if=/dev/mmcblk0 bs=512 skip=1024 count=1 | grep -c "HW CONFIG"` == 1 ]; then
CPU=`ntx_hwconfig -s -p /dev/mmcblk0 CPU`
PLATFORM=$CPU-ntx
fi

if [ $PLATFORM != freescale ] && [ ! -e /etc/u-boot/$PLATFORM/u-boot.mmc ]; then
PLATFORM=ntx508
# ---- Tshering end

Not seeing where it would likely impact a nightmode patch.

Luck;
Ken

P.S.; Is a patch with H2O in its name, supposed to work on your Glo HD?
P.P.S.; Does the Nightmode provided by KSM not work?

Last edited by Ken Maltby; 09-03-2016 at 09:14 AM.
Ken Maltby is offline   Reply With Quote