Skip to content

Instantly share code, notes, and snippets.

View Sunsvision's full-sized avatar

Viktor Sanzharevskiy Sunsvision

View GitHub Profile
@danielvijge
danielvijge / upgrade-all-packages
Last active November 12, 2024 02:29
Upgrade all packages on OpenWRT router
#!/bin/ash
source /etc/openwrt_release
echo "$DISTRIB_ID $DISTRIB_RELEASE"
rm -f /tmp/releases.html
wget -q https://downloads.openwrt.org/releases/ -O /tmp/releases.html
LATEST_RELEASE=`grep -o 'href="[0-9.]*/"' /tmp/releases.html | tail -1 | cut -d'"' -f2 | cut -d'/' -f1`
rm -f /tmp/releases.html