mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-11-12 10:39:31 +07:00
Added set_r1plus_lan_mac.sh to set orangepir1plus's mac address
This commit is contained in:
@@ -245,6 +245,9 @@ family_tweaks()
|
||||
|
||||
if [[ $BOARD == orangepir1plus ]]; then
|
||||
|
||||
# execute specific tweaks function if present
|
||||
[[ $(type -t family_tweaks_s) == function ]] && family_tweaks_s
|
||||
|
||||
# rename USB based network to lan0
|
||||
mkdir -p $SDCARD/etc/udev/rules.d/
|
||||
echo 'SUBSYSTEM=="net", ACTION=="add", DRIVERS=="r8152", KERNEL=="eth1", NAME="lan0"' > $SDCARD/etc/udev/rules.d/70-rename-lan.rules
|
||||
|
||||
32
external/config/sources/families/rockchip64.conf
vendored
32
external/config/sources/families/rockchip64.conf
vendored
@@ -19,7 +19,37 @@ family_tweaks_bsp()
|
||||
|
||||
if [[ $BOARD == orangepir1plus ]]; then
|
||||
|
||||
:
|
||||
install -m 755 $EXTER/packages/blobs/rockchip/set_r1plus_lan_mac.sh $destination/usr/bin/
|
||||
fi
|
||||
}
|
||||
|
||||
family_tweaks_s()
|
||||
{
|
||||
|
||||
if [[ $BOARD == orangepir1plus ]]; then
|
||||
|
||||
chroot $SDCARD /bin/bash -c "apt-get -y -qq install rfkill bluetooth bluez bluez-tools >/dev/null 2>&1"
|
||||
|
||||
cat <<-EOF > "${SDCARD}"/etc/rc.local
|
||||
#!/bin/sh -e
|
||||
#
|
||||
# rc.local
|
||||
#
|
||||
# This script is executed at the end of each multiuser runlevel.
|
||||
# Make sure that the script will "exit 0" on success or any other
|
||||
# value on error.
|
||||
#
|
||||
# In order to enable or disable this script just change the execution
|
||||
# bits.
|
||||
#
|
||||
# By default this script does nothing.
|
||||
|
||||
/usr/bin/set_r1plus_lan_mac.sh
|
||||
|
||||
exit 0
|
||||
EOF
|
||||
|
||||
chmod +x "${SDCARD}"/etc/rc.local
|
||||
fi
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user