aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/ltq-adsl-app/files
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2017-10-14 20:52:22 +0200
committerMathias Kresin <dev@kresin.me>2017-10-25 08:45:05 +0200
commitb02b7004f8d1a946cfd71d2458d5bc3c5946dae7 (patch)
treeeff71676c49592f785648bd97237e4dc6849fd0c /package/network/config/ltq-adsl-app/files
parent1470c79cebdae83161a48a5e08c6002ecf090f42 (diff)
downloadupstream-b02b7004f8d1a946cfd71d2458d5bc3c5946dae7.tar.gz
upstream-b02b7004f8d1a946cfd71d2458d5bc3c5946dae7.tar.bz2
upstream-b02b7004f8d1a946cfd71d2458d5bc3c5946dae7.zip
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 <dev@kresin.me>
Diffstat (limited to 'package/network/config/ltq-adsl-app/files')
-rw-r--r--package/network/config/ltq-adsl-app/files/10-adsl_rename7
1 files changed, 7 insertions, 0 deletions
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