diff --git a/nix/pkgs/openwrt/usteer-stats.sh b/nix/pkgs/openwrt/usteer-stats.sh index 1a26c43..6cbd7ce 100755 --- a/nix/pkgs/openwrt/usteer-stats.sh +++ b/nix/pkgs/openwrt/usteer-stats.sh @@ -6,6 +6,11 @@ INTERVAL=60 [ -p /tmp/usteer-info ] || mkfifo /tmp/usteer-info while true; do + if [ ! -p /tmp/usteer-info ]; then + echo "/tmp/usteer-info went missing!" + exit 1 + fi + DATA="$(cat /tmp/usteer-info)" cd /sys/class/net for iface in wlan*; do