Transférer les fichiers vers ''
This commit is contained in:
parent
62c82f2054
commit
2f9f54526a
3
bkp_list_opkg.sh
Normal file
3
bkp_list_opkg.sh
Normal 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
16
upgrade_opkg.sh
Normal 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
|
Loading…
Reference in New Issue
Block a user