From 2dc9c8206b7a452ab6977945206ce9384b2d5f3f Mon Sep 17 00:00:00 2001 From: Martin Schiller Date: Mon, 9 Oct 2017 08:26:01 +0200 Subject: lantiq: xrx200: rename nas0/ptm0 to dsl0 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 [use the dsl0 interface name for the default netdev trigger in 01_led, add ip dependency] Signed-off-by: Mathias Kresin --- package/network/config/ltq-vdsl-app/files/10-xdsl_rename | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 package/network/config/ltq-vdsl-app/files/10-xdsl_rename (limited to 'package/network/config/ltq-vdsl-app/files') diff --git a/package/network/config/ltq-vdsl-app/files/10-xdsl_rename b/package/network/config/ltq-vdsl-app/files/10-xdsl_rename new file mode 100644 index 0000000000..faa5911aa7 --- /dev/null +++ b/package/network/config/ltq-vdsl-app/files/10-xdsl_rename @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ "$ACTION" = add ]; then + [ "$DEVICENAME" = "nas0" ] ||[ "$DEVICENAME" = "ptm0" ] || exit + + ip link set $DEVICENAME name dsl0 +fi -- cgit v1.2.3