humax# cd /var/lib/humaxtv
humax# sqlite3 channel.db
SQLite version 3.8.7.4 2014-12-09 01:34:36
Enter ".help" for usage hints.
sqlite> attach 'lcnmap.db' as lcnmap;
sqlite> create table lcnmap.x as select uslcn, szsvcname from TBL_SVC;
humax# cd /var/lib/humaxtv
humax# sqlite3 channel.db
SQLite version 3.8.7.4 2014-12-09 01:34:36
Enter ".help" for usage hints.
sqlite> attach 'lcnmap.db' as lcnmap;
sqlite> update TBL_SVC set uslcn = (select uslcn from lcnmap.x where TBL_SVC.szsvcname = lcnmap.x.szsvcname);
sqlite> update TBL_SVC set uslcn = (select uslcn from lcnmap.x where TBL_SVC.szsvcname = lcnmap.x.szsvcname) where uslcn >= 800;
I wanted to use this on an HD box and it wasn't doing anything. Eventually after staring at the dump of /var/lib/humaxtv/setup.db, I worked out what the problem was. fdso has a statement:diag force-retune assuming firmware new enough to default to yes on the pop-up dialogue, otherwise you'll have to be quick getting onto the box and doing ir RIGHT OK or whatever it is!
update TBL_USERCONFIG set itemValue = 1 where itemName = 'ASO_NOTIFY_FLAG'