From a8bb090bbabb8f86f7f2253f531f6ec3a18ee3cb Mon Sep 17 00:00:00 2001 From: Astro Date: Tue, 19 Dec 2023 02:16:13 +0100 Subject: [PATCH] nix/pkgs/openwrt/usteer-stats: fix fifo path to writable location --- nix/pkgs/openwrt/usteer-info.sh | 4 ++-- nix/pkgs/openwrt/usteer-stats.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nix/pkgs/openwrt/usteer-info.sh b/nix/pkgs/openwrt/usteer-info.sh index c1db71f..591455a 100755 --- a/nix/pkgs/openwrt/usteer-info.sh +++ b/nix/pkgs/openwrt/usteer-info.sh @@ -1,3 +1,3 @@ #! /bin/sh -[ -p /var/run/usteer-info ] || exit 0 -exec /bin/ubus call usteer local_info > /var/run/usteer-info +[ -p /tmp/usteer-info ] || exit 0 +exec /bin/ubus call usteer local_info > /tmp/usteer-info diff --git a/nix/pkgs/openwrt/usteer-stats.sh b/nix/pkgs/openwrt/usteer-stats.sh index 222ccf9..1a26c43 100755 --- a/nix/pkgs/openwrt/usteer-stats.sh +++ b/nix/pkgs/openwrt/usteer-stats.sh @@ -3,10 +3,10 @@ HOSTNAME=`cat /proc/sys/kernel/hostname` INTERVAL=60 -[ -p /var/run/usteer-info ] || mkfifo /var/run/usteer-info +[ -p /tmp/usteer-info ] || mkfifo /tmp/usteer-info while true; do - DATA="$(cat /var/run/usteer-info)" + DATA="$(cat /tmp/usteer-info)" cd /sys/class/net for iface in wlan*; do eval $( echo "$DATA" | jsonfilter \