This script was on my Touchpad Go under the filename create-update.sh
#!/bin/sh
# Use this script to put the device into a "ready to install update" state.
# Before running the script, copy the packages you want in the update into
# /var/lib/software/tmp. You should remove any packages that may be in that
# directory before copying your packages there.
LIST=/var/lib/software/SessionFiles/update_list.txt
URLS=/var/lib/software/SessionFiles/urls
SCRIPT=/usr/share/ota-scripts/make-update-uimage
add_url()
{
echo "https://foo" >> $URLS
echo "1111" >> $URLS
local filename=`basename $1`
local base=${filename%%.ipk}
echo $base >> $URLS
echo "" >> $URLS
echo "" >> $URLS
}
disable_checksum()
{
mount -o remount,rw /
sed -e 's/cleanup "update-fs: $FS_MD5, updatefs-info: $MD5SUM"/:/g' \
$SCRIPT > $SCRIPT.tmp
mv $SCRIPT.tmp $SCRIPT
chmod +x $SCRIPT
mount -o remount,ro /
}
# ***************************************
stop UpdateDaemon
# remove files that might exist if the update daemon had already started
# processing an update
rm -f $LIST
rm -f /var/lib/software/SessionFiles/update_delete.txt
# create urls file header
echo "0000" > $URLS
echo "version=1" >> $URLS
# create update_list and urls files
for file in /var/lib/software/tmp/*.ipk
do
echo $file >> $LIST
add_url $file
done
# put update into validation state in case install-first is in update
echo 6 > /var/lib/software/state
# do not invalidate update if it contains a file used by update uimage
disable_checksum
start UpdateDaemon