commit:     2658f44bb04e117043d1466fcd8e65c1e321db01
Author:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  5 12:57:51 2021 +0000
Commit:     Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Tue Jan  5 14:26:56 2021 +0000
URL:        https://gitweb.gentoo.org/proj/netifrc.git/commit/?id=2658f44b

net/pppd.sh: prefer defaultroute-metric

Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>

 net/pppd.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/pppd.sh b/net/pppd.sh
index c6a6a8a..42495a7 100644
--- a/net/pppd.sh
+++ b/net/pppd.sh
@@ -65,10 +65,10 @@ pppd_pre_start()
                return 0
        fi
 
-       local link= i= unit="${IFACE#ppp}" opts= routemetric=defaultmetric
+       local link= i= unit="${IFACE#ppp}" opts= routemetric=defaultroute-metric
 
        # 
https://github.com/paulusmack/ppp/commit/35e5a569c988b1ff865b02a24d9a727a00db4da9
-       pppd_is_ge_248 && routemetric=defaultroute-metric
+       pppd_is_ge_248 || routemetric=defaultmetric
 
        # PPP requires a link to communicate over - normally a serial port
        # PPPoE communicates over Ethernet

Reply via email to