#!/bin/sh
opkg update
PACKAGES=$(opkg list-upgradable | cut -d' ' -f1 | sed ':a;N;$!ba;s/\n/ /g')
if [ ! -z "${PACKAGES}" ]; then
echo "This will upgrade the following packages:"
echo "${PACKAGES}"
echo ""
read -p "Press [Enter] key to start, or [CTRL]-C (^C) to cancel..."
opkg upgrade ${PACKAGES}
else
echo "All currently installed packages are up-to-date."
fi
Comments