Skip to content

Instantly share code, notes, and snippets.

View TerAnYu's full-sized avatar

Teremshonok Anton TerAnYu

  • Russia, Novosibirsk
View GitHub Profile
@TerAnYu
TerAnYu / upgrade-all-packages
Created November 18, 2017 17:25 — forked from danielvijge/upgrade-all-packages
Upgrade all packages on OpenWRT router
#!/bin/ash
echo "Updating package list..."
opkg update > /dev/null
if [ `opkg list-upgradable | cut -d " " -f1 | wc -l` -gt 0 ]; then
echo "Available updates:"
opkg list-upgradable
echo ""