diff -Ndur iproute2-3.16.0/examples/gaiconf iproute2-3.16.0-fix-bashisms/examples/gaiconf --- iproute2-3.16.0/examples/gaiconf 2014-08-04 22:43:46.000000000 +0300 +++ iproute2-3.16.0-fix-bashisms/examples/gaiconf 2014-11-16 03:02:55.194855668 +0200 @@ -11,7 +11,7 @@ verbose= debug= -function run () +run () { if [ x"$verbose" != x"" ]; then echo "$@" @@ -21,7 +21,7 @@ fi } -function do_load_config () +do_load_config () { file=$1; shift flush=1 @@ -36,14 +36,14 @@ done } -function do_list_config () +do_list_config () { ${IP} -6 addrlabel list | while read p pfx l lbl; do echo label ${pfx} ${lbl} done } -function help () +help () { echo "Usage: $0 [-v] {--list | --config [ ${DEFAULT_GAICONF} ] | --default}" exit 1