From b02b7004f8d1a946cfd71d2458d5bc3c5946dae7 Mon Sep 17 00:00:00 2001 From: Mathias Kresin Date: Sat, 14 Oct 2017 20:52:22 +0200 Subject: lantiq: xway: 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). By using dsl0 as interface name as for the xrx200 we can get rid of a few conditionals which were introduced because of the different default TC-Layer in xway and xrx200. Signed-off-by: Mathias Kresin --- package/network/config/ltq-adsl-app/files/10-adsl_rename | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 package/network/config/ltq-adsl-app/files/10-adsl_rename (limited to 'package/network/config/ltq-adsl-app/files') diff --git a/package/network/config/ltq-adsl-app/files/10-adsl_rename b/package/network/config/ltq-adsl-app/files/10-adsl_rename new file mode 100644 index 0000000000..faa5911aa7 --- /dev/null +++ b/package/network/config/ltq-adsl-app/files/10-adsl_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