mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
Orangepi-r1plus-lts-fix-NIC-logical-names
This commit is contained in:
@@ -57,12 +57,14 @@ if [[ $BRANCH == legacy ]]; then
|
||||
fi
|
||||
|
||||
# add a network rule to work-around Debian issues with two NICs on one network.
|
||||
display_alert "Creating board support network rename rule to work-around Debian issues for orangepi-r1-plus-lts"
|
||||
mkdir -p "${destination}"/etc/udev/rules.d/
|
||||
cat <<- EOF > "${destination}"/etc/udev/rules.d/70-rename-lan.rules
|
||||
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8152", KERNEL=="eth*", NAME="lan0", \
|
||||
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", KERNEL=="end*", NAME="eth0"
|
||||
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8152", KERNEL=="e*", NAME="lan0", \
|
||||
RUN+="/usr/sbin/ip link set lan0 down", \
|
||||
RUN+="/usr/sbin/ip link set eth0 down", \
|
||||
RUN+="/usr/bin/sleep 5s ", \
|
||||
RUN+="/usr/bin/sleep 3s ", \
|
||||
RUN+="/usr/sbin/ip link set eth0 up", \
|
||||
RUN+="/usr/bin/sleep 10s ", \
|
||||
RUN+="/usr/sbin/ip link set lan0 up"
|
||||
|
||||
Reference in New Issue
Block a user