commit 6383dc32f2f1bab5993ed55c46695e552546d0c0
Author: Arkadiusz Miśkiewicz <[email protected]>
Date:   Thu Aug 9 23:32:27 2018 +0200

    - rel 5; better handle v6 onlink route

 rc-scripts-git.patch | 18 ++++++++++++++++++
 rc-scripts.spec      |  2 +-
 2 files changed, 19 insertions(+), 1 deletion(-)
---
diff --git a/rc-scripts.spec b/rc-scripts.spec
index 099c004..8ec2e41 100644
--- a/rc-scripts.spec
+++ b/rc-scripts.spec
@@ -11,7 +11,7 @@ Summary(pl.UTF-8):    inittab i skrypty startowe z katalogu 
/etc/rc.d
 Summary(tr.UTF-8):     inittab ve /etc/rc.d dosyaları
 Name:          rc-scripts
 Version:       0.4.16
-Release:       4
+Release:       5
 License:       GPL v2
 Group:         Base
 #Source0:      ftp://distfiles.pld-linux.org/src/%{name}-%{version}.tar.gz
diff --git a/rc-scripts-git.patch b/rc-scripts-git.patch
index fb0b8e3..1e6cf1f 100644
--- a/rc-scripts-git.patch
+++ b/rc-scripts-git.patch
@@ -85,3 +85,21 @@ index 99bb078..6fdca19 100755
        if [ "$rc" -eq 0 -o "$rc" -eq 2 ]; then
                # rc is used later too, so set sane value
                rc=0
+commit 5d2ee544efe6d27d1b6bc263385c5c9b5bf1b00d
+Author: Arkadiusz Miśkiewicz <[email protected]>
+Date:   Thu Jan 18 10:41:54 2018 +0100
+
+    Onlink doesn't work for IPv6, so add gate route manually first.
+
+diff --git a/lib/functions.network b/lib/functions.network
+index bb7a525..d151b04 100644
+--- a/lib/functions.network
++++ b/lib/functions.network
+@@ -299,6 +299,7 @@ setup_ip_gw_ro ()
+               if [ -z "${IPV6_GLOBALROUTEDEV}" -o "${IPV6_GLOBALROUTEDEV}" = 
"${DEVICE}" ]; then
+                       # set up default route
+                       if [ "${IPV6_GLOBALROUTEGW}" ]; then
++                              ip -6 route add ${IPV6_GLOBALROUTEGW} dev 
${DEVICE} ${IP6SRCADDR} onlink
+                               ip -6 route add 2000::/3 via 
${IPV6_GLOBALROUTEGW} dev ${DEVICE} ${IP6SRCADDR} onlink
+                       elif [ "${IPV6_GLOBALROUTEDEV}" = "${DEVICE}" ]; then
+                               ip -6 route add 2000::/3 dev ${DEVICE} 
${IP6SRCADDR}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/rc-scripts.git/commitdiff/6383dc32f2f1bab5993ed55c46695e552546d0c0

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to