2dc9c8206b
This change makes it possible to configure the wan/dsl ppp interface settings independantly from the used TC-Layer (ATM/PTM). Now you can move a device from an ADSL/ATM port to an VDSL/PTM port without any configuration changes for example. Signed-off-by: Martin Schiller <ms@dev.tdt.de> [use the dsl0 interface name for the default netdev trigger in 01_led, add ip dependency] Signed-off-by: Mathias Kresin <dev@kresin.me>
7 lines
144 B
Bash
7 lines
144 B
Bash
#!/bin/sh
|
|
|
|
if [ "$ACTION" = add ]; then
|
|
[ "$DEVICENAME" = "nas0" ] ||[ "$DEVICENAME" = "ptm0" ] || exit
|
|
|
|
ip link set $DEVICENAME name dsl0
|
|
fi
|