2014-12-28 17:53:23 +01:00
|
|
|
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
|
2014-12-28 17:51:01 +01:00
|
|
|
verbose=
|
|
|
|
debug=
|
|
|
|
|
|
|
|
-function run ()
|
|
|
|
+run ()
|
|
|
|
{
|
|
|
|
if [ x"$verbose" != x"" ]; then
|
|
|
|
echo "$@"
|
2014-12-28 17:53:23 +01:00
|
|
|
@@ -21,7 +21,7 @@ function run ()
|
2014-12-28 17:51:01 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
-function do_load_config ()
|
|
|
|
+do_load_config ()
|
|
|
|
{
|
|
|
|
file=$1; shift
|
|
|
|
flush=1
|
2014-12-28 17:53:23 +01:00
|
|
|
@@ -36,14 +36,14 @@ function do_load_config ()
|
2014-12-28 17:51:01 +01:00
|
|
|
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
|