From 89d5212d8e2398587675da35d81d89f38f08d59c Mon Sep 17 00:00:00 2001 From: Albrecht Lohofener Date: Sat, 17 Feb 2024 20:31:54 +0100 Subject: [PATCH] Add inital try to keep installed packages (WIP) --- .../bin/restore_install_packages_from_backup | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 openwrt_additional/bin/restore_install_packages_from_backup diff --git a/openwrt_additional/bin/restore_install_packages_from_backup b/openwrt_additional/bin/restore_install_packages_from_backup new file mode 100644 index 0000000..385fb9e --- /dev/null +++ b/openwrt_additional/bin/restore_install_packages_from_backup @@ -0,0 +1,7 @@ +#/bin/sh + +echo "Get packages list from repo" +opkg update + +echo "Restore packages" +grep '\tunknown' /etc/backup/installed_packages.txt | cut -f1 | xargs opkg install