Transférer les fichiers vers ''

This commit is contained in:
NightPumpkin 2021-03-09 18:52:30 +01:00
parent 62c82f2054
commit 2f9f54526a
2 changed files with 19 additions and 0 deletions

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