/init/network-interface.conf

http://github.com/brinkman83/bashrc · Config · 19 lines · 14 code · 5 blank · 0 comment · 0 complexity · e1f786e36cfe970812604b86ba03a9f0 MD5 · raw file

  1. # network-interface - configure network device
  2. #
  3. # This service causes network devices to be brought up or down as a result
  4. # of hardware being added or removed, including that which isn't ordinarily
  5. # removable.
  6. description "configure network device"
  7. start on net-device-added
  8. stop on net-device-removed INTERFACE=$INTERFACE
  9. instance $INTERFACE
  10. pre-start script
  11. mkdir -p /var/run/network
  12. exec ifup --allow auto $INTERFACE
  13. end script
  14. post-stop exec ifdown --allow auto $INTERFACE