From f6243f2bb46321d26560c577d4c312519dc2a035 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 6a9dce7e8..14bdca30e 100755 --- a/package/base-files/files/sbin/wifi +++ b/package/base-files/files/sbin/wifi @@ -6,7 +6,7 @@ usage() { cat <