From: Roy Marples Date: Sat, 17 Oct 2009 06:58:42 +0000 (+0000) Subject: Don't allow the same hook to be added more than once. X-Git-Tag: v5.1.3~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f214237486ac95ed42a24f38b34e3a3aeb937223;p=thirdparty%2Fdhcpcd.git Don't allow the same hook to be added more than once. --- diff --git a/configure b/configure index 6af723ef..c060dc81 100755 --- a/configure +++ b/configure @@ -322,7 +322,10 @@ for x in $HOOKSCRIPTS; do echo "no" else echo "$h" - HOOKS="$HOOKS${HOOKS:+ }$h" + case " $HOOKS " in + *" $h "*) ;; + *) HOOKS="$HOOKS${HOOKS:+ }$h";; + esac fi done cd ..