mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Fix omr-rename
This commit is contained in:
parent
49db48e3dc
commit
0504af4db6
1 changed files with 2 additions and 2 deletions
|
@ -34,7 +34,7 @@ _set_intf_name() {
|
||||||
}
|
}
|
||||||
ip link set ${INTERFACE} name ${ifname} 2>&1 >/dev/null
|
ip link set ${INTERFACE} name ${ifname} 2>&1 >/dev/null
|
||||||
ip link set ${ifname} up 2>&1 >/dev/null
|
ip link set ${ifname} up 2>&1 >/dev/null
|
||||||
[ "$existif" = "1" ] && ip link set ${ifname}tmp ${$INTERFACE} 2>&1 >/dev/null
|
[ "$existif" = "1" ] && ip link set ${ifname}tmp ${INTERFACE} 2>&1 >/dev/null
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
elif [ -f /dev/${DEVICE_NAME} ] && [ -n "$MODALIAS" ] && [ "$modalias" = "$MODALIAS" ]; then
|
elif [ -f /dev/${DEVICE_NAME} ] && [ -n "$MODALIAS" ] && [ "$modalias" = "$MODALIAS" ]; then
|
||||||
|
@ -54,7 +54,7 @@ _set_intf_name() {
|
||||||
}
|
}
|
||||||
ip link set ${INTERFACE} name ${ifname} 2>&1 >/dev/null
|
ip link set ${INTERFACE} name ${ifname} 2>&1 >/dev/null
|
||||||
ip link set ${ifname} up 2>&1 >/dev/null
|
ip link set ${ifname} up 2>&1 >/dev/null
|
||||||
[ "$existif" = "1" ] && ip link set ${ifname}tmp ${$INTERFACE} 2>&1 >/dev/null
|
[ "$existif" = "1" ] && ip link set ${ifname}tmp ${INTERFACE} 2>&1 >/dev/null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue