]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
merge_config.sh: use signal names compatible with dash and bash
authorDarren Hart <dvhart@linux.intel.com>
Fri, 2 Dec 2011 03:09:11 +0000 (14:09 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 5 Dec 2011 04:19:09 +0000 (15:19 +1100)
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 <dvhart@linux.intel.com>
Acked-by: John Stultz <john.stultz@linaro.org>
Cc: Michal Marek <mmarek@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
scripts/kconfig/merge_config.sh

index 890276bd1e672f886ee37a26e0808de10995a47f..b91015df96aa49c2fb28f4cd5a73f6d77f75b065 100644 (file)
@@ -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 [...]]"