diff --git a/debian/binary/etc/rc.local b/debian/binary/etc/rc.local index f81fa2f9b..60088b7b3 100755 --- a/debian/binary/etc/rc.local +++ b/debian/binary/etc/rc.local @@ -25,7 +25,7 @@ echo out > /sys/class/gpio/gpio114/direction echo 1 > /sys/class/gpio/gpio114/value 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 & exit 0 diff --git a/debian/binary/usr/bin/update_mac_pdd_new b/debian/binary/usr/bin/update_mac_pdd_new index 3d3606a73..d1020568a 100755 Binary files a/debian/binary/usr/bin/update_mac_pdd_new and b/debian/binary/usr/bin/update_mac_pdd_new differ diff --git a/debian/overlay/etc/network/interfaces b/debian/overlay/etc/network/interfaces new file mode 100644 index 000000000..d02bca10b --- /dev/null +++ b/debian/overlay/etc/network/interfaces @@ -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 diff --git a/debian/overlay/etc/rc.local b/debian/overlay/etc/rc.local index 8efb9d02b..60088b7b3 100644 --- a/debian/overlay/etc/rc.local +++ b/debian/overlay/etc/rc.local @@ -20,4 +20,12 @@ then dpkg-reconfigure openssh-server 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