qinstall-fix_100216_arm.ipk ===================================================================================== ipk root ------------------------------------------------------------------------------------- 0rw-r--r-- root/root 4 2010-02-16 23:10:16 ./debian-binary 0rw-r--r-- root/root 2266 2010-02-16 23:10:16 ./data.tar.gz 0rw-r--r-- root/root 1405 2010-02-16 23:10:16 ./control.tar.gz control.tar.gz ------------------------------------------------------------------------------------- 0rwxr-xr-x root/root 0 2010-02-16 23:10:16 ./ 0rwxr-xr-x root/root 771 2010-02-16 23:09:05 ./preinst 0rw-r--r-- root/root 271 2010-02-16 23:10:16 ./control 0rwxr-xr-x root/root 336 2009-02-27 07:45:34 ./postrm 0rwxr-xr-x root/root 2008 2010-02-16 23:09:05 ./postinst data.tar.gz ------------------------------------------------------------------------------------- 0rwxr-xr-x root/root 0 2010-02-16 23:10:16 ./ 0rwxr-xr-x root/root 0 2010-02-16 23:10:16 ./opt/ 0rwxr-xr-x root/root 0 2010-02-16 23:10:16 ./opt/QtPalmtop/ 0rwxr-xr-x root/root 0 2010-02-16 23:10:16 ./opt/QtPalmtop/share/ 0rwxr-xr-x root/root 0 2010-02-16 23:10:16 ./opt/QtPalmtop/share/qinstall-fix/ 0rwxr-xr-x root/root 4156 2010-02-16 23:10:16 ./opt/QtPalmtop/share/qinstall-fix/bpatch control file ------------------------------------------------------------------------------------- Package: qinstall-fix Priority: optional Section: Qtopia Maintainer: Tomohiro Masubuchi Architecture: arm InternalOnly: yes NeedRestart: qtopia Version: 100216 Description: Support install IPK packages to over 2GB media by qinstall for SL-C1000, 3000. preinst file ------------------------------------------------------------------------------------- #!/bin/sh # # qinstall-fix package pre-install script # # version check VER=`cat /proc/deviceinfo/product` MD5=`md5sum /opt/QtPalmtop/binlib/qinstall.so | cut -d ' ' -f 1` case "$VER" in 'SL-C700') ORGMD5='2118dbd99f9b56707ed0e1f11d021b5e' ;; 'SL-C750') ORGMD5='87b710804588008652e6f860e6ae4298' ;; 'SL-C760') ORGMD5='bc93c99f76b04d6dbfe183bd215624ff' ;; 'SL-C860') ORGMD5='720edd0ff3bac0331f4d35c488889f85' ;; 'SL-C1000') ORGMD5='88df0ee51238d9785a18c5b2ee393318' ;; 'SL-C3000') ORGMD5='cd2629a9cd451bcd3e5198f933bb0c33' ;; 'SL-C3100') ORGMD5='2eb78c0f8d7c8e868fd85296ee2ca02a' ;; *) echo "This ipkg is not for $VER." exit 1; esac if [ $MD5 != $ORGMD5 ]; then echo "MD5 check error." exit 1; fi exit 0 postinst file ------------------------------------------------------------------------------------- #!/bin/sh # # qinstall-fix package post-install script # BPATCH="/opt/QtPalmtop/share/qinstall-fix/bpatch" TARGET="/opt/QtPalmtop/binlib/qinstall.so" BAKTARGET="/opt/QtPalmtop/share/qinstall-fix/qinstall.so" # save original file mv $TARGET $BAKTARGET cp -d $BAKTARGET $TARGET VER=`cat /proc/deviceinfo/product` case $VER in SL-C700) FIXMD5='ffdad0d4e5d24fa2e7d74441893159ff' $BPATCH $TARGET <