Last active
December 13, 2019 22:00
-
-
Save tavinus/997d896cebd575bfaf1706ce6e701c2d to your computer and use it in GitHub Desktop.
OpenWRT / LEDE quick and dirty packages upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ############################################### | |
| # Gustavo Arnosti Neves | |
| # May / 2017 | |
| # | |
| # Upgrade packages listed by: | |
| # opkg list-upgradable | |
| # | |
| # This Script: | |
| # https://gist.github.com/tavinus/997d896cebd575bfaf1706ce6e701c2d | |
| # | |
| # Better version: | |
| # https://gist.github.com/tavinus/bf6dff1c11e7c9951b829b4e33eb6076 | |
| opkg update >/dev/null; PACKS="$(opkg list-upgradable | awk '{ printf "%s ",$1 }')" && [[ ! -z "$PACKS" ]] && opkg install $PACKS || echo $'\nNo packages to install\n' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment