Proposal for update info on System page

We all know the reasons why auto updating is impossible, but it is possible that one line of info is displayed for
"Current Stable Release " in Status>System

wget --quiet https://openwrt.org/ -O-| grep "Current Stable"|cut -d\> -f2|cut -d\< -f1

And of course, the command only executes when the page is accessed

1 Like

By default the router does not have https support

1 Like

It`s no need

wget --quiet http://openwrt.org/ -O-| grep "Current Stable"|cut -d\> -f2|cut -d\< -f1

give the same resuld

This should be on a button, so visiting a page does not always trigger a connection immediately.

2 Likes

Completely agree

> We all know the reasons why auto updating is impossible
Oh really ? https://peertube.video/videos/watch/8417d691-80f5-4c73-b3c9-652d61918fa3
pull request: https://github.com/openwrt/openwrt/pull/1310

> but it is possible that one line of info is displayed for
>"Current Stable Release " in Status>System

does not work out of the box:

root@LEDE:~# wget http://openwrt.org
Downloading 'http://openwrt.org'
Connecting to 139.59.209.225:80
Failed to redirect to / on openwrt.org
root@LEDE:~#

After installing libustream-mbedtls:

root@LEDE:~# wget http://openwrt.org
Downloading 'http://openwrt.org'
Connecting to 139.59.209.225:80
Redirected to / on openwrt.org
Writing to 'index.html'

Download completed (27061 bytes)
root@LEDE:~# 

You can drop the cuts, they are not needed. Also you would have to silence the error messages by redirecting them to /dev/null.

wget -q http://openwrt.org -O- 2>/dev/null | grep -o "Current Stable[^<]*"

A better way would be (although it skips release candidates):

wget -q -O- http://downloads.openwrt.org/releases 2>/dev/null | awk '{RS=">|<"}/^[0-9\.]{7,}$/{v=$0}END{print v}'