# old and new list of packages seperated by newlines
OLD_PACKAGES=$WORKING_DIR/installed-packages_fw1.txt
-NEW_PACKAGES=$WORKING_DIR/installed-packages_hf5r.txt
+NEW_PACKAGES=$WORKING_DIR/installed-packages_hf6r.txt
# names of the output files
TO_BE_REMOVED=$WORKING_DIR/to_be_removed.txt
TO_BE_ADDED=$WORKING_DIR/to_be_added.txt
REALLY_REMOVED=$WORKING_DIR/really_removed.txt
REALLY_ADDED=$WORKING_DIR/really_added.txt
-
+ERRORS=$WORKING_DIR/errors.txt
# some temp files
for i in `cat $TO_BE_ADDED`;
do
grep "$i" $TMP1 >> $TMP2;
+ if [ "$?" -ne "0" ]
+ then
+ echo "Could not find package '$i' in download list" >> $ERRORS
+ fi
done
# seperate into 'kernel' and 'other' (every packagename that starts with 'kernel' is only relevant for the kernel space
echo " $TO_BE_ADDED: files that are to be installed (complete package name incl version number"
echo " $REALLY_REMOVED: package names of those packages that are no longer installed (and should be removed using opkg!)"
echo " $REALLY_ADDED: package names of packages that were added since the old version"
+echo " $ERRORS: a list of packages that were not found on the given download server(s)"
echo -e
echo "Saved all ("`ls $PACKAGES_FOLDER/kernel/*ipk | wc -l`") kernel related ipks to:"
echo " $PACKAGES_FOLDER/kernel"
echo " $PACKAGES_FOLDER/other"
echo -e
echo "You can now copy the folder $PACKAGES_FOLDER into the place where you create the pnd file."
+if [ -s $ERRORS ]
+then
+ echo -e
+ echo "Some packages were not found. Please have a look at $ERRORS and make sure that things actually work!"
+fi
+