Message ID | 20110610213121.7aa12662@endymion.delvare (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Index: prog/detect/sensors-detect =================================================================== --- prog/detect/sensors-detect (révision 5979) +++ prog/detect/sensors-detect (copie de travail) @@ -2462,8 +2462,8 @@ sub initialize_kernel_version { - `uname -r` =~ /(\d+)\.(\d+)\.(\d+)(.*)/; - @kernel_version = ($1, $2, $3, $4); + `uname -r` =~ /(\d+)\.(\d+)(?:\.(\d+))?(.*)/; + @kernel_version = ($1, $2, $3 || 0, $4); chomp($kernel_arch = `uname -m`); # We only support kernels >= 2.6.5