From 502e3d2ee227c85ace6cb50a8f59e49f2e4d69ff Mon Sep 17 00:00:00 2001 From: Krytarik Raido Date: Tue, 5 Dec 2017 04:13:00 +0100 Subject: Add Netplan support (Closes #5) --- wireless-info | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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 . # -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 -- cgit v1.2.3