提交 7a54708b 编写于 作者: S songchenwen

Add Version Indicator to FriendlyWRT

上级 8e6d3710
......@@ -83,12 +83,15 @@ jobs:
./scripts/feeds install -a
- name: Install Mods
env:
build_tag: ${{ steps.changelog.outputs.buildtag }}
run: |
cd friendlywrt-rk3328
sed -i '/Load Average/i\\t\t<tr><td width="33%"><%:CPU Temperature%></td><td><%=luci.sys.exec("cut -c1-2 /sys/class/thermal/thermal_zone0/temp")%></td></tr>' friendlywrt/feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
sed -i 's/pcdata(boardinfo.system or "?")/"ARMv8"/' friendlywrt/feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
sed -i "/redirect_https/d" friendlywrt/package/network/services/uhttpd/files/uhttpd.config
echo "sed -i 's/https:/http:/' /etc/opkg/distfeeds.conf" >> friendlywrt/package/base-files/files/root/setup.sh
sed -i '/luciversion/a \/ $build_tag by <a href="https://songchenwen.com">scw</a>' friendlywrt/feeds/luci/modules/luci-mod-admin-full/luasrc/view/admin_status/index.htm
- name: Download Clash Binary
if: steps.changelog.outputs.changelog != ''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册