From 15f3f892975cb4d51bcee2d057a5f33332abb175 Mon Sep 17 00:00:00 2001 From: remittor Date: Wed, 2 Oct 2024 11:37:25 +0300 Subject: [PATCH] [xmake] Add patching for config file "luci_statistics" --- xmake.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xmake.sh b/xmake.sh index 8b020ba..1309578 100755 --- a/xmake.sh +++ b/xmake.sh @@ -170,6 +170,12 @@ function build_target { if [ -f $LUCI_CFG ]; then sed -i 's/option lang auto/option lang en/g' $LUCI_CFG fi + + LUCISTATCONF=$XDIR/package/feeds/luci/luci-app-statistics/root/etc/config/luci_statistics + if [ -f $LUCISTATCONF ]; then + sed -i "/config statistics 'collectd_sensors'/{n; s/option enable '0'/option enable '1'/}" $LUCISTATCONF + sed -i "/config statistics 'collectd_thermal'/{n; s/option enable '0'/option enable '1'/}" $LUCISTATCONF + fi OPKG_DIR=$XDIR/files/etc/opkg if [ -d $OPKG_DIR ]; then