Skip to content

Commit 259c4e9

Browse files
authored
Merge pull request #463 from allanembedded/busybox-find
Fix rpi-eeprom-update when using busybox find
2 parents b4b4605 + 55ca589 commit 259c4e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rpi-eeprom-update

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ getBootloaderConfig() {
126126

127127
if [ -f "${blconfig_alias}" ]; then
128128
local blconfig_ofnode_path="/sys/firmware/devicetree/base"$(strings "${blconfig_alias}")""
129-
local blconfig_ofnode_link=$(find -L /sys/bus/nvmem -samefile "${blconfig_ofnode_path}" 2>/dev/null)
129+
local blconfig_ofnode_link=$(find -L /sys/bus/nvmem -maxdepth 3 -samefile "${blconfig_ofnode_path}" 2>/dev/null)
130130

131131
if [ -e "${blconfig_ofnode_link}" ]; then
132132
blconfig_nvmem_path=$(dirname "${blconfig_ofnode_link}")

0 commit comments

Comments
 (0)