diff options
Diffstat (limited to 'xpp/utils')
-rwxr-xr-x | xpp/utils/genzaptelconf | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/xpp/utils/genzaptelconf b/xpp/utils/genzaptelconf index 79c1b66..d69b710 100755 --- a/xpp/utils/genzaptelconf +++ b/xpp/utils/genzaptelconf @@ -456,8 +456,16 @@ unload_modules() { # sleep a while until the xpp modules fully register wait_for_xpp() { + case "`uname -r`" in + 2.6.8*) + autoreg="/sys/module/xpp/zap_autoreg" + ;; + *) + autoreg="/sys/module/xpp/parameters/zap_autoreg" + ;; + esac if [ -d /proc/xpp ] && \ - [ "`cat /sys/module/xpp/parameters/zap_autoreg`" = 'Y' ] + [ "`cat $autoreg`" = 'Y' ] then # wait for the XPDs to register: # TODO: improve error reporting and produce a messagee here |