Fix usage of eend in config_cpu() if execution fails.
authorMichael Prokop <mika@grml.org>
Wed, 3 Feb 2010 02:06:26 +0000 (03:06 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 3 Feb 2010 02:06:26 +0000 (03:06 +0100)
autoconfig.functions

index 3cc12ee..b69f79c 100755 (executable)
@@ -1427,10 +1427,11 @@ else
               eend 0
            else
               SKIP_CPU_GOVERNOR=1
-              eend $1
+              eend $RC
            fi
         else
-           ewarn "Could not detect an appropriate CPU for use with cpu frequency scaling - skipping." && eend 1
+           ewarn "Could not detect an appropriate CPU for use with cpu frequency scaling - skipping."
+           eend 1
         fi # $MODULE
      fi # loadcpufreq