openwrt/package/network/config/ltq-vdsl-app/files/10-xdsl_rename

8 lines
145 B
Bash

#!/bin/sh
if [ "$ACTION" = add ]; then
[ "$DEVICENAME" = "nas0" ] || [ "$DEVICENAME" = "ptm0" ] || exit
ip link set $DEVICENAME name dsl0
fi