Transférer les fichiers vers '' #1
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