change net to dhcp fix rc.local overlay
This commit is contained in:
parent
c8d165f7f4
commit
b8a6f65e90
2
debian/binary/etc/rc.local
vendored
2
debian/binary/etc/rc.local
vendored
@ -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
|
||||||
|
|||||||
BIN
debian/binary/usr/bin/update_mac_pdd_new
vendored
BIN
debian/binary/usr/bin/update_mac_pdd_new
vendored
Binary file not shown.
11
debian/overlay/etc/network/interfaces
vendored
Normal file
11
debian/overlay/etc/network/interfaces
vendored
Normal 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
|
||||||
8
debian/overlay/etc/rc.local
vendored
8
debian/overlay/etc/rc.local
vendored
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user