summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-20 20:52:15 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-20 20:52:15 +0100
commit5fb694405ae3f0433d7823e2ed4f62555b4bd629 (patch)
treeed149111acb48fa81f80f1cb7a2246525e1f2d7c
parent879856e440536e649bbc6e795892b061e63cb7ad (diff)
downloadvyatta-cfg-system-5fb694405ae3f0433d7823e2ed4f62555b4bd629.tar.gz
vyatta-cfg-system-5fb694405ae3f0433d7823e2ed4f62555b4bd629.zip
udev: move rules to vyos-1x package
-rw-r--r--Makefile.am5
-rw-r--r--sysconf/42-qemu-usb.rules14
-rw-r--r--sysconf/63-hyperv-vf-net.rules5
-rw-r--r--sysconf/64-vyos-vmware-net.rules14
-rw-r--r--sysconf/65-vyatta-net.rules26
5 files changed, 0 insertions, 64 deletions
diff --git a/Makefile.am b/Makefile.am
index 59f9d4e4..930a8fb8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -70,12 +70,7 @@ sysconf_DATA += sysconf/sudoers
sysconf_DATA += sysconf/netdevice
libudevdir = /lib/udev
-udevrulesdir = /lib/udev/rules.d
libudev_SCRIPTS = scripts/vyatta_net_name
-udevrules_DATA = sysconf/65-vyatta-net.rules
-udevrules_DATA += sysconf/42-qemu-usb.rules
-udevrules_DATA += sysconf/64-vyos-vmware-net.rules
-udevrules_DATA += sysconf/63-hyperv-vf-net.rules
cronhourlydir = /etc/cron.hourly
cronhourly_SCRIPTS = sysconf/vyatta-logrotate-hourly
diff --git a/sysconf/42-qemu-usb.rules b/sysconf/42-qemu-usb.rules
deleted file mode 100644
index a79543df..00000000
--- a/sysconf/42-qemu-usb.rules
+++ /dev/null
@@ -1,14 +0,0 @@
-#
-# Enable autosuspend for qemu emulated usb hid devices.
-#
-# Note that there are buggy qemu versions which advertise remote
-# wakeup support but don't actually implement it correctly. This
-# is the reason why we need a match for the serial number here.
-# The serial number "42" is used to tag the implementations where
-# remote wakeup is working.
-#
-# Gerd Hoffmann <kraxel@xxxxxxxxxx>
-
-ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Mouse", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"
-ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Tablet", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"
-ACTION=="add", SUBSYSTEM=="usb", ATTR{product}=="QEMU USB Keyboard", ATTR{serial}=="42", TEST=="power/control", ATTR{power/control}="auto"
diff --git a/sysconf/63-hyperv-vf-net.rules b/sysconf/63-hyperv-vf-net.rules
deleted file mode 100644
index b4dcb5a3..00000000
--- a/sysconf/63-hyperv-vf-net.rules
+++ /dev/null
@@ -1,5 +0,0 @@
-ATTR{[dmi/id]sys_vendor}!="Microsoft Corporation", GOTO="end_hyperv_nic"
-
-ACTION=="add", SUBSYSTEM=="net", DRIVERS=="hv_pci", NAME="vf_%k"
-
-LABEL="end_hyperv_nic"
diff --git a/sysconf/64-vyos-vmware-net.rules b/sysconf/64-vyos-vmware-net.rules
deleted file mode 100644
index 66a4a069..00000000
--- a/sysconf/64-vyos-vmware-net.rules
+++ /dev/null
@@ -1,14 +0,0 @@
-ATTR{[dmi/id]sys_vendor}!="VMware, Inc.", GOTO="end_vmware_nic"
-
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet0", ENV{VYOS_IFNAME}="eth0"
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet1", ENV{VYOS_IFNAME}="eth1"
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet2", ENV{VYOS_IFNAME}="eth2"
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet3", ENV{VYOS_IFNAME}="eth3"
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet4", ENV{VYOS_IFNAME}="eth4"
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet5", ENV{VYOS_IFNAME}="eth5"
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet6", ENV{VYOS_IFNAME}="eth6"
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet7", ENV{VYOS_IFNAME}="eth7"
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet8", ENV{VYOS_IFNAME}="eth8"
-ACTION=="add", SUBSYSTEM=="net", ATTRS{label}=="Ethernet9", ENV{VYOS_IFNAME}="eth9"
-
-LABEL="end_vmware_nic"
diff --git a/sysconf/65-vyatta-net.rules b/sysconf/65-vyatta-net.rules
deleted file mode 100644
index 2b48c121..00000000
--- a/sysconf/65-vyatta-net.rules
+++ /dev/null
@@ -1,26 +0,0 @@
-# These rules use vyatta_net_name to persistently name network interfaces
-# per "hwid" association in the Vyatta configuration file.
-
-ACTION!="add", GOTO="vyatta_net_end"
-SUBSYSTEM!="net", GOTO="vyatta_net_end"
-
-# ignore the interface if a name has already been set
-NAME=="?*", GOTO="vyatta_net_end"
-
-# Do name change for ethernet and wireless devices only
-KERNEL!="eth*|wlan*", GOTO="vyatta_net_end"
-
-# ignore "secondary" monitor interfaces of mac80211 drivers
-KERNEL=="wlan*", ATTRS{type}=="803", GOTO="vyatta_net_end"
-
-# If using VyOS predefined names
-ENV{VYOS_IFNAME}!="eth*", GOTO="end_vyos_predef_names"
-
-DRIVERS=="?*", PROGRAM="vyatta_net_name %k $attr{address} $env{VYOS_IFNAME}", NAME="%c", GOTO="vyatta_net_end"
-
-LABEL="end_vyos_predef_names"
-
-# ignore interfaces without a driver link like bridges and VLANs
-DRIVERS=="?*", PROGRAM="vyatta_net_name %k $attr{address}", NAME="%c"
-
-LABEL="vyatta_net_end"