aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/ltq-adsl-app/files
diff options
context:
space:
mode:
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