watchdog: start traversing the device tree from the right directory
start with the device subtree, not with the parent of itmaster
parent
fe83231e30
commit
bf75218e45
|
|
@ -56,7 +56,7 @@ installkernel() {
|
||||||
# however in some cases, we also need to check that if there is
|
# however in some cases, we also need to check that if there is
|
||||||
# a specific driver for the parent bus/device. In such cases
|
# a specific driver for the parent bus/device. In such cases
|
||||||
# we also need to enable driver for parent bus/device.
|
# we also need to enable driver for parent bus/device.
|
||||||
_wdtppath=$(readlink -f "$_dir/device/..")
|
_wdtppath=$(readlink -f "$_dir/device")
|
||||||
while [[ -d "$_wdtppath" ]] && [[ "$_wdtppath" != "/sys" ]]; do
|
while [[ -d "$_wdtppath" ]] && [[ "$_wdtppath" != "/sys" ]]; do
|
||||||
_wdtppath=$(readlink -f "$_wdtppath/..")
|
_wdtppath=$(readlink -f "$_wdtppath/..")
|
||||||
[[ -f "$_wdtppath/modalias" ]] || continue
|
[[ -f "$_wdtppath/modalias" ]] || continue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue