From: Darren Hart Date: Thu, 8 Dec 2011 04:33:13 +0000 (+1100) Subject: merge_config.sh: use signal names compatible with dash and bash X-Git-Tag: next-20111213~1^2~200 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=71d6d474bd7b22fb6696dbf09a2c11c3a4e1316e;p=karo-tx-linux.git merge_config.sh: use signal names compatible with dash and bash The SIGHUP SIGINT and SIGTERM names caused failures when running merge_config.sh with the dash shell. Dropping the "SIG" component makes the script work in both bash and dash. Signed-off-by: Darren Hart Acked-by: John Stultz Cc: Michal Marek Signed-off-by: Andrew Morton --- diff --git a/scripts/kconfig/merge_config.sh b/scripts/kconfig/merge_config.sh index 890276bd1e67..b91015df96aa 100644 --- a/scripts/kconfig/merge_config.sh +++ b/scripts/kconfig/merge_config.sh @@ -24,7 +24,7 @@ clean_up() { rm -f $TMP_FILE exit } -trap clean_up SIGHUP SIGINT SIGTERM +trap clean_up HUP INT TERM usage() { echo "Usage: $0 [OPTIONS] [CONFIG [...]]"