On Mon, 16 May 2022 01:10:20 +0200 Stella Ashburne <rewe...@gmx.com> wrote:
> I. Depending on how I connect to the internet, I create a file each > called lan, usb0 and wlo1 and place them in > /etc/network/interfaces.d. Is there a neater way of doing it? Network Manager. If you insist on writing your own script, it should be feasible. Maybe a case statement based on the SSID the access point provides? > > 2. In the file called wlo1, I have four parts that correspond to the > four different wireless networks. is there a neater way of doing it? If you use Network Manager, get rid of wlo1 and any other files for interfaces other than lo. I don't know if NM will manage a USB interface, though. If you insist on writing your own scripts, I'd use a case statement based on the SSID and an appropriate HERE statement for each interface. Have those go to a file under /etc/network. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/