PageRenderTime 289ms CodeModel.GetById 287ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/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
 7description	"configure network device"
 8
 9start on net-device-added
10stop on net-device-removed INTERFACE=$INTERFACE
11
12instance $INTERFACE
13
14pre-start script
15    mkdir -p /var/run/network
16    exec ifup --allow auto $INTERFACE
17end script
18
19post-stop exec ifdown --allow auto $INTERFACE