systemd/udev-ifupdown.rules

9 lines
347 B
Plaintext
Raw Normal View History

2023-12-30 11:35:14 +01:00
#
# 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}"