Skip to content

Instantly share code, notes, and snippets.

@tavinus
Last active December 13, 2019 22:00
Show Gist options
  • Select an option

  • Save tavinus/997d896cebd575bfaf1706ce6e701c2d to your computer and use it in GitHub Desktop.

Select an option

Save tavinus/997d896cebd575bfaf1706ce6e701c2d to your computer and use it in GitHub Desktop.
OpenWRT / LEDE quick and dirty packages upgrade
#!/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