On Thu, 2019-04-11 at 10:16 -0400, Derek Atkins wrote: > Thanks, Thomas, > > Thomas Haller via networkmanager-list <[email protected]> > writes: > > [snip] > > Any chance you could give a quick explanation of what these (two?) > sets > of commands are doing?
Hi, UUIDS is a variable containing all the "connection.uuid"s for your Wi- Fi profiles. Then, the first "for" iterates over them, and for each connection profile it prints 5 fields (so you see what is configured in these profiles). The second, itereates over the same profiles, but clears the connection.interface-name and wifi.mac-address properties. These two properties (among others) tie a connection profile to a certain device, by clearing them, the profile is applicable for any device, regardless of the interface name and MAC address. See `man nm-settings` for the properties. And see `man nmcli` or just `nmcli help` for info about nmcli. Does this help? best, Thomas > > Thanks, > > -derek > > > Hi, > > > > I'd do: > > > > UUIDS="$(nmcli -g TYPE,UUID connection show | \ > > sed -n 's/802-11-wireless://p')" > > > > for UUID in $UUIDS; \ > > do \ > > nmcli \ > > -f connection.id,connection.uuid,802-11- > > wireless.ssid,connection.interface-name,802-11-wireless.mac-address > > \ > > -mode multiline \ > > connection show uuid "$UUID" ; \ > > echo ; \ > > done > > > > if you want to clear these values: > > > > for UUID in $UUIDS; \ > > do \ > > echo "$UUID ..." ; \ > > nmcli connection modify uuid "$UUID" \ > > connection.interface-name '' \ > > wifi.mac-address '' ; \ > > done > > > > > > > In a similar vein, is there a way to tell NM to disable to > > > embedded > > > wifi > > > adapter? > > > > put > > > > [device-unmanage-internal-wifi] > > match-device=mac:aa:bb:cc:dd:ee:ff > > managed=0 > > > > to /etc/NetworkManager/conf.d/99-unmanaged-internal-wifi.conf and > > restart. > > > > Or even blacklist the module from loading in /etc/modprobe.d. > > > > > > best, > > Thomas > > > > _______________________________________________ > > networkmanager-list mailing list > > [email protected] > > https://mail.gnome.org/mailman/listinfo/networkmanager-list > >
signature.asc
Description: This is a digitally signed message part
_______________________________________________ networkmanager-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/networkmanager-list
