From: Andre Heider Date: Wed, 2 Nov 2022 07:50:20 +0000 (+0100) Subject: base-files: add 'isup' to the wifi script X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=28e357d528edf5980a523eff497b72da8bde3d91;p=openwrt%2Fstaging%2Fblocktrron.git 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 --- 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 <