View Single Post
Old 01-29-2013, 14:45   #4380 (permalink)
dsa8310
No Life Poster
 
dsa8310's Avatar
 
Join Date: Feb 2009
Posts: 2,573
Member: 973199
Status: Offline
Thanks: 204
Thanked 1,599 Times in 778 Posts
Code:
#!/bin/sh
                                                #
                                                #
#                                                #
# do NOT touch what appears to be the first line                        #
#                                                #
                                                #
#                                                #
# ex_squeeze_memory:                                        #
# its header line should NOT be changed, because it is referred by dsa-cabpatch            #
# line reading "###""motd" is another reference for dsa-cabpatch, do NOT change it either    #
# it executes miscellaneous settings...                                #
#                                                #
ex_squeeze_memory() {    #
  ###cfs    #
  ###if [ "${hw_harddisk}" = "1" ]; then hdparm -a0 -m0 /dev/hda; echo noop >/sys/block/hda/queue/scheduler; fi    #
  ln -sf ../bin/busybox /sbin/poweroff                                #
  if [ "${hw_bluetooth}" = "0" ]; then rm -f /mnt/sdcard/SdkRegistry/TTbtconsole.cap        #
  if [ "${hw_gprsmodem}" = "0" ]; then rm -f /mnt/sdcard/SdkRegistry/TTquickgpsfix.cap; fi; fi    #
  ###mplayer                                            #
  ln -s fb /dev/fb0                                        #
  ln -s /mnt/sdcard/lib/libSDL-1.2.so.0.11.2 /lib/libSDL-1.2.so.0                #
  rm -f /lib/libmad*                                        #
  ln -s /mnt/sdcard/lib/libmad.so.0.2.1 /lib/libmad.so.0                    #
  mkdir -p /usr/local/etc/mplayer                                #
  ln -s /mnt/sdcard/mplayer.conf /usr/local/etc/mplayer/                    #
  ###busybox                                            #
  ln -s busybox /bin/find                                    #
  ###cfs    #
  if [ "${hw_harddisk}" = "1" ]; then rm -f /mnt/sdcard/currentmap.dat; fi    #
  ###mbs    #
  ln -sf /bin/busybox /sbin/mkswap    #
  ln -sf /bin/busybox /sbin/swapon    #
  ln -sf /bin/busybox /sbin/swapoff    #
  ###motd    #
  if [ -f /mnt/sdcard/motd ]; then                                #
    dos2unix /mnt/sdcard/motd                                    #
    export hw_modelname="`cat /mnt/sdcard/motd`"                        #
    unix2dos /mnt/sdcard/motd                                    #
    echo "$hw_modelname" >/proc/barcelona/modelname                        #
  fi                                                #
}                                                #
                                                #
#                                                #
# script execution starts here                                    #
#                                                #
ex_squeeze_memory                                        #
                                                #
#                                                #
# reading of intended ttd(tomtom device id) from file reskin                    #
#                                                #
if [ -f /mnt/sdcard/skins/reskin ]; then                            #
  dos2unix /mnt/sdcard/skins/reskin                                #
  read line </mnt/sdcard/skins/reskin                                #
  unix2dos /mnt/sdcard/skins/reskin                                #
                                                #
  ttd=${line%%;*}                                        #
  ttd=${ttd%%-*}                                        #
fi                                                #
                                                #
#                                                #
# modelid is patched to value of ttd or left unchanged (self)                    #
#                                                #
if [ -n "$ttd" -a "slf" != "$ttd" ]; then                            #
  echo "$ttd" >/proc/barcelona/modelid                                #
  export hw_modelid="$ttd"                                    #
fi                                                #
                                                #
#                                                #
# memory boost code, may be deleted by dsa-cabpatch                        #
# "###memory_boost" and "###memory_boost_end" are its boundaries, do NOT change            #
#                                                #
###memory_boost                                            #
if [ -s /mnt/sdcard/swap ]; then                                #
  mkswap -c -v1 /mnt/sdcard/swap                                #
  swapon /mnt/sdcard/swap                                    #
{                                                #
  sleep 90                                            #
  echo 100 >/proc/sys/vm/swappiness                                #
  while true; do                                        #
    sleep 30                                            #
    rss=`ps | grep ttn | grep -v grep | head -1 | awk '{print $3}'`                #
    rss=$((rss / 1024))                                        #
    if [ $rss -lt 26 ]; then break; fi                                #
  done                                                #
  echo 60 >/proc/sys/vm/swappiness                                #
}&                                                #
fi                                                #
###memory_boost_end                                        #
                                                #
#                                                #
# do NOT change this last instruction                                #
# it is intended for this script execution as "ttn" in the root of storage            #
#                                                #
if [ "$0" != "/init" ]; then exec /bin/ttn; fi                            #
Code above is file skins\ttn on your go910 device when selecting MB and CF, with only one change: first line following first line reading ###cfs is commented out, that is it starts with ###.
Edit your own file skins\ttn on device, after reinstalling with MB and CF, with notepad under Windows, and do comment out (or even delete) the very same line indicated above.
As a result, each time when you reboot your device, you will be asked to make a map selection - provided that you have at least TWO maps on device (add a small map if necessary, one that you don't care of).

I am not sure that this would help, but I cannot understand your issue... and I do have a go910 too.
  Reply With Quote
 
Page generated in 0.08236 seconds with 9 queries