diff options
Diffstat (limited to 'kanotix-udev-wlan-hack')
-rw-r--r-- | kanotix-udev-wlan-hack/70-kanotix-hack.rules | 22 | ||||
-rw-r--r-- | kanotix-udev-wlan-hack/71-kanotix-custom-hack.rules | 21 | ||||
-rw-r--r-- | kanotix-udev-wlan-hack/debian/README | 6 | ||||
-rw-r--r-- | kanotix-udev-wlan-hack/debian/changelog | 23 | ||||
-rw-r--r-- | kanotix-udev-wlan-hack/debian/compat | 1 | ||||
-rw-r--r-- | kanotix-udev-wlan-hack/debian/control | 13 | ||||
-rw-r--r-- | kanotix-udev-wlan-hack/debian/copyright | 33 | ||||
-rw-r--r-- | kanotix-udev-wlan-hack/debian/kanotix-udev-wlan-hack-docs.docs | 1 | ||||
-rw-r--r-- | kanotix-udev-wlan-hack/debian/kanotix-udev-wlan-hack.install | 3 | ||||
-rwxr-xr-x | kanotix-udev-wlan-hack/debian/rules | 28 | ||||
-rw-r--r-- | kanotix-udev-wlan-hack/debian/source/format | 1 |
11 files changed, 152 insertions, 0 deletions
diff --git a/kanotix-udev-wlan-hack/70-kanotix-hack.rules b/kanotix-udev-wlan-hack/70-kanotix-hack.rules new file mode 100644 index 0000000..972fb5c --- /dev/null +++ b/kanotix-udev-wlan-hack/70-kanotix-hack.rules @@ -0,0 +1,22 @@ +# file is part of kanotix-udev-wlan-hack.deb +# DO not edit, will be overwritten by update +# /etc/udev/rules.d/70-kanotix-hack.rules +# modified file from /lib/udev/rules.d/73-usb-net-by-mac.rules +# force ID_NET_NAME_PATH instead of ID_NET_NAME_MAC +# https://wiki.debian.org/NetworkInterfaceNames + +ACTION=="remove", GOTO="usb_net_by_mac_end" +SUBSYSTEM!="net", GOTO="usb_net_by_mac_end" +ATTR{name_assign_type}=="3", GOTO="usb_net_by_mac_end" + +IMPORT{cmdline}="net.ifnames" +ENV{net.ifnames}=="0", GOTO="usb_net_by_mac_end" + +SUBSYSTEMS=="usb", NAME=="", \ + ATTR{address}=="?[014589cd]:*", \ + TEST!="/etc/udev/rules.d/80-net-setup-link.rules", \ + TEST!="/etc/systemd/network/99-default.link", \ + IMPORT{builtin}="net_id", NAME="$env{ID_NET_NAME_PATH}" +# IMPORT{builtin}="net_id", NAME="$env{ID_NET_NAME_SLOT}" + +LABEL="usb_net_by_mac_end" diff --git a/kanotix-udev-wlan-hack/71-kanotix-custom-hack.rules b/kanotix-udev-wlan-hack/71-kanotix-custom-hack.rules new file mode 100644 index 0000000..df0921c --- /dev/null +++ b/kanotix-udev-wlan-hack/71-kanotix-custom-hack.rules @@ -0,0 +1,21 @@ +# file is installed by kanotix-udev-hack-script +# edit for your needs +# hardcode NAME by mac-address +# https://askubuntu.com/questions/826325/how-to-revert-usb-wifi-interface-name-from-wlxxxxxxxxxxxxx-to-wlanx +# fill in your mac-address and your device NAME + +SUBSYSTEM=="net", \ + ACTION=="add", \ + DRIVERS=="?*", \ + ATTR{address}=="f8:d1:11:0d:82:ea", \ + ATTR{dev_id}=="0x0", \ + ATTR{type}=="1", \ + NAME="wlstick1" + +SUBSYSTEM=="net", \ + ACTION=="add", \ + DRIVERS=="?*", \ + ATTR{address}=="xx:xx:xx:xx:xx:xx", \ + ATTR{dev_id}=="0x0", \ + ATTR{type}=="1", \ + NAME="wlstick2" diff --git a/kanotix-udev-wlan-hack/debian/README b/kanotix-udev-wlan-hack/debian/README new file mode 100644 index 0000000..0b39f43 --- /dev/null +++ b/kanotix-udev-wlan-hack/debian/README @@ -0,0 +1,6 @@ +The Debian Package kanotix-udev-wlan-hack +---------------------------- + +Comments regarding the Package + + -- Holger Paradies <retabell@gmx.de> Sat, 28 Mar 2020 12:46:50 +0100 diff --git a/kanotix-udev-wlan-hack/debian/changelog b/kanotix-udev-wlan-hack/debian/changelog new file mode 100644 index 0000000..6c82ca1 --- /dev/null +++ b/kanotix-udev-wlan-hack/debian/changelog @@ -0,0 +1,23 @@ +kanotix-udev-wlan-hack (0.0.4) unstable; urgency=medium + + * install the local file only as template + + -- Holger Paradies <retabell@gmx.de> Fri, 10 Apr 2020 13:11:28 +0200 + +kanotix-udev-wlan-hack (0.0.3) unstable; urgency=medium + + * disable conf files + + -- Holger Paradies <retabell@gmx.de> Sun, 29 Mar 2020 15:49:17 +0200 + +kanotix-udev-wlan-hack (0.0.2) unstable; urgency=medium + + * split files + + -- Holger Paradies <retabell@gmx.de> Sun, 29 Mar 2020 12:23:51 +0200 + +kanotix-udev-wlan-hack (0.0.1) unstable; urgency=medium + + * Initial Release. + + -- Holger Paradies <retabell@gmx.de> Sat, 28 Mar 2020 12:46:50 +0100 diff --git a/kanotix-udev-wlan-hack/debian/compat b/kanotix-udev-wlan-hack/debian/compat new file mode 100644 index 0000000..b4de394 --- /dev/null +++ b/kanotix-udev-wlan-hack/debian/compat @@ -0,0 +1 @@ +11 diff --git a/kanotix-udev-wlan-hack/debian/control b/kanotix-udev-wlan-hack/debian/control new file mode 100644 index 0000000..054e8c5 --- /dev/null +++ b/kanotix-udev-wlan-hack/debian/control @@ -0,0 +1,13 @@ +Source: kanotix-udev-wlan-hack +Section: unknown +Priority: optional +Maintainer: Holger Paradies <retabell@gmx.de> +Build-Depends: debhelper (>= 11) +Standards-Version: 4.1.3 +Homepage: git.acritox.com + +Package: kanotix-udev-wlan-hack +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: avoid long mac-adresses for usb-wifi + change the use of mac-adresses per udev-rules file diff --git a/kanotix-udev-wlan-hack/debian/copyright b/kanotix-udev-wlan-hack/debian/copyright new file mode 100644 index 0000000..885ddc5 --- /dev/null +++ b/kanotix-udev-wlan-hack/debian/copyright @@ -0,0 +1,33 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: kanotix-udev-wlan-hack +Source: <url://example.com> + +Files: * +Copyright: 2020 Holger Paradies <retabell@gmx.de> +License: GPL-2.0+ + +Files: debian/* +Copyright: 2020 Holger Paradies <retabell@gmx.de> +License: GPL-2.0+ + +License: GPL-2.0+ + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + . + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + . + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/> + . + On Debian systems, the complete text of the GNU General + Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". + +# Please also look if there are files or directories which have a +# different copyright/license attached and list them here. +# Please avoid picking licenses with terms that are more restrictive than the +# packaged work, as it may make Debian's contributions unacceptable upstream. diff --git a/kanotix-udev-wlan-hack/debian/kanotix-udev-wlan-hack-docs.docs b/kanotix-udev-wlan-hack/debian/kanotix-udev-wlan-hack-docs.docs new file mode 100644 index 0000000..e845566 --- /dev/null +++ b/kanotix-udev-wlan-hack/debian/kanotix-udev-wlan-hack-docs.docs @@ -0,0 +1 @@ +README diff --git a/kanotix-udev-wlan-hack/debian/kanotix-udev-wlan-hack.install b/kanotix-udev-wlan-hack/debian/kanotix-udev-wlan-hack.install new file mode 100644 index 0000000..e605816 --- /dev/null +++ b/kanotix-udev-wlan-hack/debian/kanotix-udev-wlan-hack.install @@ -0,0 +1,3 @@ +70-kanotix-hack.rules etc/udev/rules.d +#71-kanotix-custom-hack.rules etc/udev/rules.d +71-kanotix-custom-hack.rules usr/share/doc/kanotix-udev-wlan-hack/template diff --git a/kanotix-udev-wlan-hack/debian/rules b/kanotix-udev-wlan-hack/debian/rules new file mode 100755 index 0000000..b08191f --- /dev/null +++ b/kanotix-udev-wlan-hack/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f +# See debhelper(7) (uncomment to enable) +# output every command that modifies files on the build system. +#export DH_VERBOSE = 1 + + +# see FEATURE AREAS in dpkg-buildflags(1) +#export DEB_BUILD_MAINT_OPTIONS = hardening=+all + +# see ENVIRONMENT in dpkg-buildflags(1) +# package maintainers to append CFLAGS +#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic +# package maintainers to append LDFLAGS +#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed + + +%: + dh $@ + + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +#override_dh_auto_configure: +# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH) + +override_dh_installdeb: + dh_installdeb + rm debian/kanotix-udev-wlan-hack/DEBIAN/conffiles diff --git a/kanotix-udev-wlan-hack/debian/source/format b/kanotix-udev-wlan-hack/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/kanotix-udev-wlan-hack/debian/source/format @@ -0,0 +1 @@ +3.0 (native) |