From a451af5cedf04f1f16d40f4953be276da61eff1e Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 9 Sep 2014 15:44:34 +0200 Subject: functions: fix typo in best_effort_rmmod() Emeric reported a typo causing best_effort_rmmod() not to work, the list of modules to unload is never appended because of a missing '#'. --- sbin/init.d/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/init.d/functions b/sbin/init.d/functions index 9a7619f..dadd42e 100755 --- a/sbin/init.d/functions +++ b/sbin/init.d/functions @@ -382,7 +382,7 @@ best_effort_rmmod() { break fi fi - modules[${modules[@]}]="$1" + modules[${#modules[@]}]="$1" usedby="usedby_${1}" if [ -n "${!usedby}" ] ; then if [ "${!usedby}" != "-" ] ; then -- 1.7.12.1