config/interface_modify.sh: before calling a script check if it exists and is executable
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Jul 2010 12:05:51 +0000 (14:05 +0200)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 15 Jul 2010 05:36:39 +0000 (15:06 +0930)
commite665cfde03fc9ec2264e99512ed5470872a2fd04
treeec283799c3625d77c690f44053a377916600fa29
parent72d6914ee913272312d7b68f1be5ad05ad06587d
config/interface_modify.sh: before calling a script check if it exists and is executable

For non bash shells $_s_script might end with '/*'.

We do the workarround this way, because it makes sense to check
that a script is executable, before trying to execute it.

metze

[ This actually applies to any shell -- Rusty Russell ]
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
config/interface_modify.sh