Fix usage of eend in config_cpu() if execution fails.
[grml-autoconfig.git] / 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