/init/network-interface.conf
http://github.com/brinkman83/bashrc · Config · 19 lines · 14 code · 5 blank · 0 comment · 0 complexity · e1f786e36cfe970812604b86ba03a9f0 MD5 · raw file
- # network-interface - configure network device
- #
- # This service 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.
- description "configure network device"
- start on net-device-added
- stop on net-device-removed INTERFACE=$INTERFACE
- instance $INTERFACE
- pre-start script
- mkdir -p /var/run/network
- exec ifup --allow auto $INTERFACE
- end script
- post-stop exec ifdown --allow auto $INTERFACE