/lib/udev/rules.d/85-netscript.rules is in netscript-2.4 5.3.0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | # This file causes network devices to be brought up or down as a result
# of hardware being added or removed, including that which isn't ordinarily
# removable.
# See udev(7) for syntax.
SUBSYSTEM=="net", DRIVERS=="?*", GOTO="netscript_start"
GOTO="netscript_end"
LABEL="netscript_start"
# Bring devices up and down.
# Use start-stop-daemon so we don't wait on any network daemons that are invoked.
ACTION=="add", RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/netscript -- ifup $env{INTERFACE}"
ACTION=="remove", RUN+="/sbin/start-stop-daemon --start --background --pidfile /var/run/network/bogus --startas /sbin/netscript -- ifdown $env{INTERFACE}"
LABEL="netscript_end"
|