From 2f9f54526a0b0f63e4aa6c491253959a9fc5f22b Mon Sep 17 00:00:00 2001 From: NightPumpkin Date: Tue, 9 Mar 2021 18:52:30 +0100 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20''?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bkp_list_opkg.sh | 3 +++ upgrade_opkg.sh | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 bkp_list_opkg.sh create mode 100644 upgrade_opkg.sh 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 -- 2.45.2