Transférer les fichiers vers '' #1

Merged
NightPumpkin merged 1 commits from nightpumpkin-patch-1 into master 2021-03-09 18:52:38 +01:00
2 changed files with 19 additions and 0 deletions
Showing only changes of commit 2f9f54526a - Show all commits

3
bkp_list_opkg.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
ls /overlay/upper/usr/lib/opkg/info/*.list | sed -e 's/.*\///' | sed -e 's/\.list//' > list_opkg.list

16
upgrade_opkg.sh Normal file
View File

@ -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