Taken from Debian, original comment follows: #! /bin/sh /usr/share/dpatch/dpatch-run ## remove-bashism.dpatch by Patrick Winnertz <[email protected]> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: remove some bashisms in the output
Signed-off-by: Marc Kleine-Budde <[email protected]> Signed-off-by: Wolfram Sang <[email protected]> --- cpufreq.c | 2 +- powertop.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpufreq.c b/cpufreq.c index ab84dc4..a291fdf 100644 --- a/cpufreq.c +++ b/cpufreq.c @@ -39,7 +39,7 @@ static void activate_ondemand(void) FILE *file; char filename[PATH_MAX]; - system("/sbin/modprobe cpufreq_ondemand &> /dev/null"); + system("/sbin/modprobe cpufreq_ondemand > /dev/null 2>&1"); dir = opendir("/sys/devices/system/cpu"); diff --git a/powertop.c b/powertop.c index 1a81cb4..4f1a613 100644 --- a/powertop.c +++ b/powertop.c @@ -882,7 +882,7 @@ int main(int argc, char **argv) if (!dump) ticktime = 5.0; - system("/sbin/modprobe cpufreq_stats &> /dev/null"); + system("/sbin/modprobe cpufreq_stats > /dev/null 2>&1"); read_data(&start_usage[0], &start_duration[0]); -- 1.6.5 _______________________________________________ Power mailing list [email protected] http://www.bughost.org/mailman/listinfo/power
