systemd/udev-ifupdown.rules
2023-12-30 11:35:14 +01:00

9 lines
347 B
Plaintext

#
# network up/addremove management rules file for udev
# Copyright (c) 2008 by Silvan Calarco <silvan.calarco@mambasoft.it>
#
ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="*", \
RUN+="/sbin/ifup $env{INTERFACE} --udev"
ACTION=="remove", SUBSYSTEM=="net", ENV{INTERFACE}=="*", \
RUN+="/sbin/ifdown $env{INTERFACE}"