]> git.pld-linux.org Git - packages/rc-scripts.git/commitdiff
- rel 5; better handle v6 onlink route auto/th/rc-scripts-0.4.16-5
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Aug 2018 21:32:27 +0000 (23:32 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 9 Aug 2018 21:32:27 +0000 (23:32 +0200)
rc-scripts-git.patch
rc-scripts.spec

index fb0b8e3a4dd781c51dfc5cec6302e488af5f2907..1e6cf1fa1b8aafe3a8f42353e076ade7795b24bd 100644 (file)
@@ -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 <arekm@maven.pl>
+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}
index 099c004d1cadf9b7d70cc31a37929c7d54371533..8ec2e41291104c2a587d4bb619e49e211ffa68a2 100644 (file)
@@ -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
This page took 0.097095 seconds and 4 git commands to generate.