From 28e357d528edf5980a523eff497b72da8bde3d91 Mon Sep 17 00:00:00 2001 From: Andre Heider Date: Wed, 2 Nov 2022 08:50:20 +0100 Subject: [PATCH] base-files: add 'isup' to the wifi script This is a silent command that allows easy wifi up/down automation for scripts. It takes one or multiple devices as arguments (or all if none are passed), and the exit code indicates if any of those is not up. E.g.: wifi isup && echo "all wifi devices are up" wifi isup radio0 || echo "this wifi is down" Signed-off-by: Andre Heider --- package/base-files/files/sbin/wifi | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/package/base-files/files/sbin/wifi b/package/base-files/files/sbin/wifi index 29585389df..a3d3206ee7 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -6,7 +6,7 @@ usage() { cat <