From: Harald Hoyer Date: Mon, 18 Apr 2016 13:50:42 +0000 (+0200) Subject: watchdog: start traversing the device tree from the right directory X-Git-Tag: 045~164 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bf75218e45180b957192f08c3fa5d5b147b66c31;p=thirdparty%2Fdracut.git watchdog: start traversing the device tree from the right directory start with the device subtree, not with the parent of it --- diff --git a/modules.d/04watchdog/module-setup.sh b/modules.d/04watchdog/module-setup.sh index 7b2685d4c..7566d6515 100755 --- a/modules.d/04watchdog/module-setup.sh +++ b/modules.d/04watchdog/module-setup.sh @@ -56,7 +56,7 @@ installkernel() { # however in some cases, we also need to check that if there is # a specific driver for the parent bus/device. In such cases # 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 _wdtppath=$(readlink -f "$_wdtppath/..") [[ -f "$_wdtppath/modalias" ]] || continue