summaryrefslogtreecommitdiff
diff options
-rwxr-xr-xbin/network_configs16
1 files changed, 10 insertions, 6 deletions
diff --git a/bin/network_configs b/bin/network_configs
index f546f3e..b2fcc99 100755
--- a/bin/network_configs
+++ b/bin/network_configs
@@ -1,12 +1,16 @@
#!/bin/bash
if `grep -q "replaced by netplan" /etc/network/interfaces`; then
- for configfile in `find /etc/netplan -type f`; do
- echo "Config File $configfile:"
- cat $configfile
- echo ""
+ # Get our configs from netplan
+ for directory in "etc" "run" "lib"; do
+ for configfile in `find /$directory/netplan -type f -name *.yaml`; do
+ echo "Config File $configfile:"
+ cat $configfile
+ echo ""
+ done
done
else
- echo "/etc/network/interfaces:"
- cat /etc/network/interfaces
+ # get configs from Network Manager instead
+ echo "Network Manager:"
+ nmcli device show
fi