From 78e602ab7e3c8ee78b7309ac1cad659564bf5bd6 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Sat, 25 Jun 2022 05:00:16 -0400 Subject: update systemd networking & system files --- etc/systemd/network/10-wlp3s0.network | 6 ++++++ etc/systemd/network/20-dummy1.netdev | 3 +++ etc/systemd/network/20-dummy1.network | 3 +++ etc/systemd/network/20-dummy3.netdev | 3 +++ etc/systemd/network/20-dummy3.network | 3 +++ etc/systemd/network/25-he-ipv6.netdev | 10 ++++++++++ etc/systemd/network/25-he-ipv6.network | 8 ++++++++ etc/systemd/network/wlp3s0.network | 5 ----- etc/systemd/system/fix-f4-led.service | 11 +++++++++++ 9 files changed, 47 insertions(+), 5 deletions(-) create mode 100644 etc/systemd/network/10-wlp3s0.network create mode 100644 etc/systemd/network/20-dummy1.netdev create mode 100644 etc/systemd/network/20-dummy1.network create mode 100644 etc/systemd/network/20-dummy3.netdev create mode 100644 etc/systemd/network/20-dummy3.network create mode 100644 etc/systemd/network/25-he-ipv6.netdev create mode 100644 etc/systemd/network/25-he-ipv6.network delete mode 100644 etc/systemd/network/wlp3s0.network create mode 100644 etc/systemd/system/fix-f4-led.service diff --git a/etc/systemd/network/10-wlp3s0.network b/etc/systemd/network/10-wlp3s0.network new file mode 100644 index 0000000..87f68cd --- /dev/null +++ b/etc/systemd/network/10-wlp3s0.network @@ -0,0 +1,6 @@ +[Match] +Name=wlp3s0 + +[Network] +DHCP=yes +# Tunnel=he-ipv6 diff --git a/etc/systemd/network/20-dummy1.netdev b/etc/systemd/network/20-dummy1.netdev new file mode 100644 index 0000000..318bb09 --- /dev/null +++ b/etc/systemd/network/20-dummy1.netdev @@ -0,0 +1,3 @@ +[NetDev] +Name=dummy1 +Kind=dummy diff --git a/etc/systemd/network/20-dummy1.network b/etc/systemd/network/20-dummy1.network new file mode 100644 index 0000000..3ae219e --- /dev/null +++ b/etc/systemd/network/20-dummy1.network @@ -0,0 +1,3 @@ +[Match] +Name=dummy1 +Unmanaged=yes diff --git a/etc/systemd/network/20-dummy3.netdev b/etc/systemd/network/20-dummy3.netdev new file mode 100644 index 0000000..c9fa450 --- /dev/null +++ b/etc/systemd/network/20-dummy3.netdev @@ -0,0 +1,3 @@ +[NetDev] +Name=dummy3 +Kind=dummy diff --git a/etc/systemd/network/20-dummy3.network b/etc/systemd/network/20-dummy3.network new file mode 100644 index 0000000..8c3a2e7 --- /dev/null +++ b/etc/systemd/network/20-dummy3.network @@ -0,0 +1,3 @@ +[Match] +Name=dummy3 +Unmanaged=yes diff --git a/etc/systemd/network/25-he-ipv6.netdev b/etc/systemd/network/25-he-ipv6.netdev new file mode 100644 index 0000000..c2bf632 --- /dev/null +++ b/etc/systemd/network/25-he-ipv6.netdev @@ -0,0 +1,10 @@ +[NetDev] +Name=he-ipv6 +Kind=sit +MTUBytes=1480 + +[Tunnel] +Local=192.168.1.103 +Remote=216.66.22.2 +TTL=255 +Independent=true diff --git a/etc/systemd/network/25-he-ipv6.network b/etc/systemd/network/25-he-ipv6.network new file mode 100644 index 0000000..63b11b9 --- /dev/null +++ b/etc/systemd/network/25-he-ipv6.network @@ -0,0 +1,8 @@ +[Match] +Name=he-ipv6 + +[Network] +Gateway=2001:470:7:384::1 +Address=2001:470:7:384::103/64 +Address=2001:470:8:385::103/64 +DNS=2001:470:20::2 diff --git a/etc/systemd/network/wlp3s0.network b/etc/systemd/network/wlp3s0.network deleted file mode 100644 index 65dfd51..0000000 --- a/etc/systemd/network/wlp3s0.network +++ /dev/null @@ -1,5 +0,0 @@ -[Match] -Name=wlp3s0 - -[Network] -DHCP=yes diff --git a/etc/systemd/system/fix-f4-led.service b/etc/systemd/system/fix-f4-led.service new file mode 100644 index 0000000..87ccb0f --- /dev/null +++ b/etc/systemd/system/fix-f4-led.service @@ -0,0 +1,11 @@ +# Enable with +# systemctl enable --now fix-f4-led.service +[Unit] +Description=Fix F4 LED on Thinkpad + +[Service] +Type=oneshot +ExecStart=/bin/sh -c "echo 0 > /sys/class/leds/platform::micmute/brightness" + +[Install] +WantedBy=multi-user.target -- cgit v1.2.3