Remove signals that begin with SIG* since that is considered a
bashism. Use the POSIX-compliant version to list signals to be
used with the trap command.

Signed-off-by: Lisa Nguyen <lisa.ngu...@linaro.org>
---
 cpufreq/cpufreq_05.sh |    2 +-
 cpufreq/cpufreq_06.sh |    2 +-
 cpufreq/cpufreq_07.sh |    2 +-
 cpufreq/cpufreq_08.sh |    2 +-
 cpufreq/cpufreq_09.sh |    2 +-
 cpuidle/cpuidle_03.sh |    2 +-
 thermal/thermal_03.sh |    2 +-
 thermal/thermal_04.sh |    2 +-
 thermal/thermal_06.sh |    2 +-
 9 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/cpufreq/cpufreq_05.sh b/cpufreq/cpufreq_05.sh
index 8df5ba2..f74a23e 100755
--- a/cpufreq/cpufreq_05.sh
+++ b/cpufreq/cpufreq_05.sh
@@ -29,7 +29,7 @@
 
 save_governors
 
-trap restore_governors SIGHUP SIGINT SIGTERM
+trap restore_governors HUP INT TERM
 
 switch_ondemand() {
     local cpu=$1
diff --git a/cpufreq/cpufreq_06.sh b/cpufreq/cpufreq_06.sh
index fedec0f..803b937 100755
--- a/cpufreq/cpufreq_06.sh
+++ b/cpufreq/cpufreq_06.sh
@@ -110,7 +110,7 @@ fi
 save_governors
 save_frequencies
 
-trap "restore_frequencies; restore_governors; sigtrap" SIGHUP SIGINT SIGTERM
+trap "restore_frequencies; restore_governors; sigtrap" HUP INT TERM
 
 for_each_cpu check_deviation
 
diff --git a/cpufreq/cpufreq_07.sh b/cpufreq/cpufreq_07.sh
index 2568b72..9f41c49 100755
--- a/cpufreq/cpufreq_07.sh
+++ b/cpufreq/cpufreq_07.sh
@@ -79,7 +79,7 @@ fi
 
 save_governors
 
-trap "restore_governors; sigtrap" SIGHUP SIGINT SIGTERM
+trap "restore_governors; sigtrap" HUP INT TERM
 
 for_each_cpu check_ondemand
 
diff --git a/cpufreq/cpufreq_08.sh b/cpufreq/cpufreq_08.sh
index 8eae7c0..29b2b9f 100755
--- a/cpufreq/cpufreq_08.sh
+++ b/cpufreq/cpufreq_08.sh
@@ -72,7 +72,7 @@ if [ -z "$supported" ]; then
     return 0
 fi
 
-trap "restore_governors; sigtrap" SIGHUP SIGINT SIGTERM
+trap "restore_governors; sigtrap" HUP INT TERM
 
 for_each_cpu check_userspace
 
diff --git a/cpufreq/cpufreq_09.sh b/cpufreq/cpufreq_09.sh
index f227b62..746c7de 100755
--- a/cpufreq/cpufreq_09.sh
+++ b/cpufreq/cpufreq_09.sh
@@ -68,7 +68,7 @@ if [ -z "$supported" ]; then
     return 0
 fi
 
-trap "restore_governors; sigtrap" SIGHUP SIGINT SIGTERM
+trap "restore_governors; sigtrap" HUP INT TERM
 
 for_each_cpu check_powersave
 
diff --git a/cpuidle/cpuidle_03.sh b/cpuidle/cpuidle_03.sh
index 036ff22..5dbf37f 100755
--- a/cpuidle/cpuidle_03.sh
+++ b/cpuidle/cpuidle_03.sh
@@ -49,7 +49,7 @@ check_cpuidle_kill() {
     check "cpuidle program runs successfully (120 secs)" "./$CPUIDLE_KILLER"
 }
 
-trap "restore_cpus; sigtrap" SIGHUP SIGINT SIGTERM
+trap "restore_cpus; sigtrap" HUP INT TERM
 
 for_each_cpu check_cpuidle_kill
 restore_cpus
diff --git a/thermal/thermal_03.sh b/thermal/thermal_03.sh
index a4504f5..42082f0 100755
--- a/thermal/thermal_03.sh
+++ b/thermal/thermal_03.sh
@@ -58,7 +58,7 @@ check_temperature_change() {
     check "temperature variation with load" "test $final_temp -gt $init_temp"
 }
 
-trap "heater_kill; sigtrap" SIGHUP SIGINT SIGTERM
+trap "heater_kill; sigtrap" HUP INT TERM
 
 for_each_thermal_zone check_temperature_change
 test_status_show
diff --git a/thermal/thermal_04.sh b/thermal/thermal_04.sh
index 058920c..932903c 100755
--- a/thermal/thermal_04.sh
+++ b/thermal/thermal_04.sh
@@ -75,7 +75,7 @@ verify_cooling_device_temp_change() {
     echo $prev_state_val > $dirpath/cur_state
 }
 
-trap "heater_kill; sigtrap" SIGHUP SIGINT SIGTERM
+trap "heater_kill; sigtrap" HUP INT TERM
 
 set_thermal_governors user_space
 
diff --git a/thermal/thermal_06.sh b/thermal/thermal_06.sh
index 5c80b6a..978a526 100755
--- a/thermal/thermal_06.sh
+++ b/thermal/thermal_06.sh
@@ -100,7 +100,7 @@ check_trip_point_change() {
     heater_kill
 }
 
-trap "heater_kill; sigtrap" SIGHUP SIGINT SIGTERM
+trap "heater_kill; sigtrap" HUP INT TERM
 
 for_each_thermal_zone check_trip_point_change
 test_status_show
-- 
1.7.9.5


_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to