#!/system/bin/sh # Sqlite Database Tweaks #for i in `busybox find /d* -iname "*.db"`; do # sqlite3 $i 'VACUUM;'; # sqlite3 $i 'REINDEX;'; #done # Enable Write ahead Journaling mode if [ -f /data/system/packages.xml ]; then for i in `busybox find /data -iname "*.db"`; do /system/xbin/sqlite3 $i 'PRAGMA journal_mode = WAL;'; done; else echo "May Need To Reboot after first boot for WAL to take effect"; fi;
but get a syntax error at "do"..
mobile: HTC Incredible S
script location: sdcard (also tried internal like /data/local)
my ROM is CM10 and busybox sterickson..
the above script is in some ROMs and runs from init.d
the first part (vacuum, reindex) I've commented it out but gives also the same error..