mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
Merge pull request #376 from c-po/netplug-t5476
netplug: T5476: move configuration files to vyos-1x repo
This commit is contained in:
commit
555322a6e2
@ -1,29 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# vyos policy agent for netplugd
|
||||
#
|
||||
|
||||
dev="$1"
|
||||
action="$2"
|
||||
|
||||
case "$action" in
|
||||
in)
|
||||
run-parts -a $dev /etc/netplug/linkup.d
|
||||
;;
|
||||
out)
|
||||
run-parts -a $dev /etc/netplug/linkdown.d
|
||||
;;
|
||||
|
||||
# probe loads and initialises the driver for the interface and brings the
|
||||
# interface into the "up" state, so that it can generate netlink(7) events.
|
||||
# This interferes with "admin down" for an interface. Thus, commented out. An
|
||||
# "admin up" is treated as a "link up" and thus, "link up" action is executed.
|
||||
# To execute "link down" action on "admin down", run appropriate script in
|
||||
# /etc/netplug/linkdown.d
|
||||
#probe)
|
||||
# ;;
|
||||
|
||||
*)
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
@ -1,3 +0,0 @@
|
||||
eth*
|
||||
br*
|
||||
bond*
|
||||
Loading…
x
Reference in New Issue
Block a user