make sure that the "pandora" specific packages are installed last
authorNils Kneuper <crazy-ivanovic@gmx.net>
Sat, 15 Oct 2011 12:18:18 +0000 (14:18 +0200)
committerNils Kneuper <crazy-ivanovic@gmx.net>
Sat, 15 Oct 2011 12:18:18 +0000 (14:18 +0200)
this way config files will be forcefully overwritten by the ones that
come from the openpandora team

hotfix_updater/get_packages.sh
hotfix_updater/hotfix/updater.sh

index 6be74bb..4c1cf9d 100755 (executable)
@@ -113,6 +113,10 @@ wget --no-clobber -i $TMP2.kernel
 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
 
index 987f0de..49ca785 100755 (executable)
@@ -250,10 +250,10 @@ then
                # $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
@@ -289,7 +289,7 @@ then
        #
 
 
-       echo "70"
+       echo "55"
        echo "# U-Boot if needed"
 
        if [ -f u-boot.bin ];
@@ -330,7 +330,7 @@ then
        fi
 
 
-       echo "75"
+       echo "60"
        echo "# Preparing OS update."
 
 
@@ -344,16 +344,17 @@ then
        # $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"