ALT Linux repositórios
Group :: Rede/Acesso Remoto
RPM: rp-pppoe
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: rp-pppoe-3.5-ALT-resolver.patch
Download
Download
diff -urN rp-pppoe-3.5.orig/scripts/adsl-connect.in rp-pppoe-3.5/scripts/adsl-connect.in
--- rp-pppoe-3.5.orig/scripts/adsl-connect.in 2005-11-17 04:14:32 +0200
+++ rp-pppoe-3.5/scripts/adsl-connect.in 2005-12-20 16:13:32 +0200
@@ -29,6 +29,7 @@
# Paths to programs
IFCONFIG=/sbin/ifconfig
+CHRUPDATE="/sbin/update_chrooted conf"
PPPD=@PPPD@
SETSID=@SETSID@
PPPOE=@sbindir@/pppoe
@@ -48,7 +49,7 @@
SETSID=""
fi
-CONFIG=/etc//ppp/pppoe.conf
+CONFIG=/etc/ppp/pppoe.conf
USER=""
ETH=""
@@ -219,8 +220,8 @@
# Jigger DNS if required...
if test "$DNSTYPE" = "SERVER" ; then
# Sorry, dude...
- rm -f /etc/resolv.conf
- ln -s /etc/ppp/resolv.conf /etc/resolv.conf
+ cat /etc/ppp/resolv.conf > /etc/resolv.conf
+ $CHRUPDATE
elif test "$DNSTYPE" = "SPECIFY" ; then
# Sorry, dude...
rm -f /etc/resolv.conf
@@ -228,6 +229,7 @@
if test -n "$DNS2" ; then
echo "nameserver $DNS2" >> /etc/resolv.conf
fi
+ $CHRUPDATE
fi
# PPPoE invocation