Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Commit

Permalink
Configure eth0 within build script using ifconfig (not nmcli).
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger committed Jun 22, 2024
1 parent 5bb83b2 commit 8237583
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/docker-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ function finish
echo $GPIO_NIRQ_NUM > /sys/class/gpio/unexport
echo $GPIO_NRST_NUM > /sys/class/gpio/unexport
echo $GPIO_NBOOT_NUM > /sys/class/gpio/unexport

ifconfig eth0 down
}
trap finish EXIT

Expand All @@ -40,6 +42,8 @@ ip link set $CAN type can bitrate $CAN_BITRATE
ip link set $CAN up
ifconfig $CAN txqueuelen 10

ifconfig eth0 192.168.1.5 netmask 255.255.255.0
ifconfig eth0 up
sudo -u fio ifconfig $CAN

echo $GPIO_NIRQ_NUM > /sys/class/gpio/export
Expand Down

0 comments on commit 8237583

Please sign in to comment.