diff options
author | 2017-12-05 04:13:00 +0100 | |
---|---|---|
committer | 2017-12-05 04:13:00 +0100 | |
commit | 502e3d2ee227c85ace6cb50a8f59e49f2e4d69ff (patch) | |
tree | 943d207c8cd766e7d31d10be605d6141888b11ff | |
parent | 207c70a7e3fd596bfd4a62d2d0383e5d06d6f2ae (diff) | |
download | wireless-info-502e3d2ee227c85ace6cb50a8f59e49f2e4d69ff.tar.bz2 wireless-info-502e3d2ee227c85ace6cb50a8f59e49f2e4d69ff.tar.xz wireless-info-502e3d2ee227c85ace6cb50a8f59e49f2e4d69ff.tar.zst |
Add Netplan support (Closes #5)
-rwxr-xr-x | wireless-info | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/wireless-info b/wireless-info index c666b3a..f6ce2e2 100755 --- a/wireless-info +++ b/wireless-info @@ -25,7 +25,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -SCRIPTDATE="2017-03-25 08:04 +0100" +SCRIPTDATE="2017-12-05 04:13 +0100" FILEBASE="wireless-info" OUTPUTDIR="$PWD" OUTPUTDIRFB="/tmp" @@ -286,6 +286,14 @@ else echo "No NetworkManager profiles found." fi +printf "\n##### Netplan config ####################\n\n" +for NPLANFILE in $(find /{lib,etc,run}/netplan -name "*.yaml" 2> /dev/null | sort); do + NPLANFLCNT=$(egrep -v '^(#|$)' $NPLANFILE) + if [ -n "$NPLANFLCNT" ]; then + printf "[%s]\n%s\n\n" "$NPLANFILE" "$NPLANFLCNT" + fi +done + printf "\n##### iw reg get ########################\n\n" if [ -x /sbin/iw ]; then if IWREGGET=$(iw reg get 2>&1) && [ -f /etc/timezone ]; then |