[ HANDLING=0|1|2|3 ] (0 is default; used ie. in ATM configuration, for
details see ifup script)
+[ CHECK_LINK_WAIT_TIMEOUT=<wait max x sec for interface link up> ]
+
if DEVICE=eth*; then
[ MEDIA={auto|10baseT|10base2|AUI} ]
if macvlan
MACVLAN_DEV=<exitsting base interface eg. eth0>
MACVLAN_MACADDR=<desired hw address of new interface>
+ MACVLAN_MODE=<desired mode of new interface (private, vepa, bridge, passthru, source)>
fi
DISCOVERY=yes|no (starts discovery of remote IrDA devices)
fi
-# You can also run some other programs *after* device has been brought up or down.
-# Just create functions run_up() and run_down().
+# You can also run commands before/after a device has been brought up or down.
+# Just create functions run_up/run_pre_up/run_down/run_pre_down.
+run_pre_up()
+{
+ echo "This will be executed before device is brought up!"
+}
+
run_up()
{
echo "This will be executed after device is brought up!"
}
+run_pre_down()
+{
+ echo "This will be executed before device is brought down!"
+}
+
run_down()
{
echo "This will be executed after device is brought down!"