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?