change net to dhcp fix rc.local overlay

This commit is contained in:
hyx 2026-01-28 18:55:29 +08:00
parent c8d165f7f4
commit b8a6f65e90
4 changed files with 20 additions and 1 deletions

View File

@ -25,7 +25,7 @@ echo out > /sys/class/gpio/gpio114/direction
echo 1 > /sys/class/gpio/gpio114/value echo 1 > /sys/class/gpio/gpio114/value
chmod +x /usr/bin/update_mac_pdd_new chmod +x /usr/bin/update_mac_pdd_new
chmod +x /opt/sshpass_arm64 chmod +x /usr/bin/sshpass_arm64
/usr/bin/update_mac_pdd_new >/var/log/update_mac.log 2>&1 & /usr/bin/update_mac_pdd_new >/var/log/update_mac.log 2>&1 &
exit 0 exit 0

Binary file not shown.

11
debian/overlay/etc/network/interfaces vendored Normal file
View File

@ -0,0 +1,11 @@
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet dhcp
#address 10.10.12.12
#netmask 255.255.255.0
#gateway 10.10.12.1
hwaddress ether 90:A9:F7:30:00:00

View File

@ -20,4 +20,12 @@ then
dpkg-reconfigure openssh-server dpkg-reconfigure openssh-server
fi fi
echo 114 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio114/direction
echo 1 > /sys/class/gpio/gpio114/value
chmod +x /usr/bin/update_mac_pdd_new
chmod +x /usr/bin/sshpass_arm64
/usr/bin/update_mac_pdd_new >/var/log/update_mac.log 2>&1 &
exit 0 exit 0