Permalink
Browse files

Add ifup/ifdown udev rules

  • Loading branch information...
brentonr committed Oct 21, 2015
1 parent 2a4c30c commit 6a3171f7e5edcebde09d0666a84ccf55b8060de9
Showing with 4 additions and 0 deletions.
  1. +4 −0 53-ec2-network-interfaces.rules
@@ -15,3 +15,7 @@

ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*", IMPORT{program}="/bin/sleep 1"
SUBSYSTEM=="net", RUN+="/etc/network/ec2net.hotplug"
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eth*", \
RUN+="/sbin/ifup $env{INTERFACE}"
ACTION=="remove", SUBSYSTEM=="net", KERNEL=="eth*", \
RUN+="/sbin/ifdown $env{INTERFACE}"

0 comments on commit 6a3171f

Please sign in to comment.