diff --git a/bkp_list_opkg.sh b/bkp_list_opkg.sh new file mode 100644 index 0000000..5d2e2ad --- /dev/null +++ b/bkp_list_opkg.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +ls /overlay/upper/usr/lib/opkg/info/*.list | sed -e 's/.*\///' | sed -e 's/\.list//' > list_opkg.list \ No newline at end of file diff --git a/upgrade_opkg.sh b/upgrade_opkg.sh new file mode 100644 index 0000000..8f7d5d8 --- /dev/null +++ b/upgrade_opkg.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +opkg update + +echo "############################################################################" +opkg list-upgradable +echo "############################################################################" +echo +echo "Upgrade ? [Y/n]" + +read a + +if [[ $a == "Y" ]]; then + echo "Upgrade in progress ..." + opkg list-upgradable | sed -e "s/\s.*//" | while read PKG_NAME; do opkg upgrade "${PKG_NAME}"; done +fi \ No newline at end of file