thkukuk / issue-generator Goto Github PK
View Code? Open in Web Editor NEWScripts to generate an issue file for login from different snippets during booting.
License: GNU General Public License v2.0
Scripts to generate an issue file for login from different snippets during booting.
License: GNU General Public License v2.0
In /etc/udev/rules.d/70-persistent-net.rules I do have entries like this one:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?", ATTR{address}=="00:15:5d:85:04:21", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth", NAME="ext1"
And /usr/lib/udev/rules.d/90-issue-generator.rules contains:
ACTION=="add", SUBSYSTEM=="net", RUN+="/usr/sbin/issue-generator network add $env{INTERFACE}"
ACTION=="remove", SUBSYSTEM=="net", RUN+="/usr/sbin/issue-generator network del $env{INTERFACE}"
The above action "add" will generate a file in /run/issue.d (for example /run/issue.d/70-eth1.conf) which uses the original interface name.
Hence, no interface adresses will be shown as issue.
For some reason, renaming network interfaces does not generate add
/remove
events, but rather a single move
event. This means that after ip link set enp1s0 name eth0
, the shown issue is broken.
I'm not show how such a udev rule handling that would look like, as I don't see how to get the old name in a move event...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.