From: http://ftp.de.debian.org/debian/pool/main/p/powertop/powertop_1.11-1.diff.gz Signed-off-by: Marc Kleine-Budde #! /bin/sh /usr/share/dpatch/dpatch-run ## remove-bashism.dpatch by Patrick Winnertz ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: remove some bashisms in the output @DPATCH@ 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 fc605ec..4d18de8 100644 --- a/powertop.c +++ b/powertop.c @@ -798,7 +798,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]);