Skip to content

Commit 922c0cb

Browse files
Fix DHCP on raspberry pi 4b:
The udev rules on a raspberry pi 4b name the interfaces with `eth`. This breaks the dhcp.sh script. So we make the interface name look up more flexible by only filtering for `e*` interface names. Signed-off-by: Jacob Weinstock <[email protected]>
1 parent 652e9f4 commit 922c0cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/dhcp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ set -x
99

1010
run_dhcp_client() {
1111
one_shot="$1"
12-
al="en*"
12+
al="e*"
1313

1414
vlan_id=$(sed -n 's/.* vlan_id=\([0-9]*\).*/\1/p' /proc/cmdline)
1515
if [ -n "$vlan_id" ]; then
16-
al="en*.*"
16+
al="e*.*"
1717
fi
1818

1919
if [ "$one_shot" = "true" ]; then

0 commit comments

Comments
 (0)