1
# network-interface - configure network device
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
8
# Scott James Remnant <scott@ubuntu.com> Tue, 15 Sep 2009 03:30:29 +0100
9
# copyright 2009 Canonical Limited. License GPL v2
10
# changes for netscript-2.4
11
# copyright 2011 Matthew Alexander Grant License GPL V2
12
# Matthew Grant <matthewgrant5@gmail.com>
14
description "configure network device"
16
start on stopped rc RUNLEVEL=[2345] and net-device-added
17
stop on runlevel [2345] and net-device-removed INTERFACE=$INTERFACE
22
if [ "$INTERFACE" != "lo" ]; then
23
exec netscript ifup $INTERFACE
28
if [ "$INTERFACE" != "lo" ]; then
29
exec netscript ifdown $INTERFACE