iproute2/iproute2-3.16.0-fix-bashisms.patch

47 lines
947 B
Diff
Raw Normal View History

From: Oleksandr Chumachenko <ledest@gmail.com>
Date: Sun, 28 Dec 2014 17:35:02 +0100
---
examples/gaiconf | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
Index: iproute2-3.17.0/examples/gaiconf
===================================================================
--- iproute2-3.17.0.orig/examples/gaiconf
+++ iproute2-3.17.0/examples/gaiconf
@@ -11,7 +11,7 @@ DEFAULT_GAICONF=/etc/gai.conf
verbose=
debug=
-function run ()
+run ()
{
if [ x"$verbose" != x"" ]; then
echo "$@"
@@ -21,7 +21,7 @@ function run ()
fi
}
-function do_load_config ()
+do_load_config ()
{
file=$1; shift
flush=1
@@ -36,14 +36,14 @@ function do_load_config ()
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