cd $PACKAGES_FOLDER/other
wget --no-clobber -i $TMP2.other
+# move packages that are supposed to be openpandora specific into an extra folder which is installed last!
+mkdir $PACKAGES_FOLDER/pandora
+mv $PACKAGES_FOLDER/other/pandora*ipk $PACKAGES_FOLDER/pandora/
+
# cleanup all the remaining temp files
rm -f $TMP1 $TMP2 $TMP2.kernel $TMP2.other
# $3 end percentage for zenity (int!)
# $4 step width for zenity ($4 percent point per gui update / opkg run)
# $5 message displayed in zenity during the update
- install_all_ipk_in_folder packages/kernel 7 65 6 "# Updating Kernel Modules... this will take a while..."
+ install_all_ipk_in_folder packages/kernel 7 50 6 "# Updating Kernel Modules... this will take a while..."
fi
- echo "65"
+ echo "50"
echo "# Updating kernel if needed"
kernel_known=false
#
- echo "70"
+ echo "55"
echo "# U-Boot if needed"
if [ -f u-boot.bin ];
fi
- echo "75"
+ echo "60"
echo "# Preparing OS update."
# $3 end percentage for zenity (int!)
# $4 step width for zenity ($4 percent point per gui update / opkg run)
# $5 message displayed in zenity during the update
- install_all_ipk_in_folder packages/other 80 95 6 "# Updating OS... this will take a while."
+ install_all_ipk_in_folder packages/other 60 80 6 "# Updating OS... this will take a while."
- # we seem to always want to forcefully overwrite the skel files!
- if [ -f packages/other/pandora-skel_*ipk ]
- then
- for my_package in packages/other/pandora-skel_*ipk
- do
- opkg install --force-overwrite --force-overwrite $my_package >> ./opkg.log
- done
- fi
+ # Install those packages that come from openpandora.org seperately at the end to make sure that the correct config files are replaced.
+
+ # call the function for installing ipks
+ # $1 path for packages
+ # $2 start percentage for zenity (int!)
+ # $3 end percentage for zenity (int!)
+ # $4 step width for zenity ($4 percent point per gui update / opkg run)
+ # $5 message displayed in zenity during the update
+ install_all_ipk_in_folder packages/pandora 80 95 6 "# Updating OS... this will take a while."
log "Packages updated"