[oe-commits] Thomas Zimmermann : ppp: make if-up/-down scripts compatible to resolvconf (thx to Wonka)
git version control
git at git.openembedded.org
Sun Mar 28 17:27:18 UTC 2010
Module: openembedded.git
Branch: shr/unstable
Commit: eb594c1c5fba3c31bc785bdc537fcb928f014555
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=eb594c1c5fba3c31bc785bdc537fcb928f014555
Author: Thomas Zimmermann <ml at vdm-design.de>
Date: Sat Mar 27 17:28:08 2010 +0100
ppp: make if-up/-down scripts compatible to resolvconf (thx to Wonka)
Signed-off-by: Thomas Zimmermann <ml at vdm-design.de>
---
recipes/ppp/files/08setupdns | 4 +++-
recipes/ppp/files/92removedns | 4 +++-
recipes/ppp/ppp_2.4.3.bb | 2 +-
3 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/recipes/ppp/files/08setupdns b/recipes/ppp/files/08setupdns
index 998219d..5be2d38 100644
--- a/recipes/ppp/files/08setupdns
+++ b/recipes/ppp/files/08setupdns
@@ -1,7 +1,9 @@
#!/bin/sh
ACTUALCONF=/var/run/resolv.conf
PPPCONF=/var/run/ppp/resolv.conf
-if [ -f $PPPCONF ] ; then
+if [ -x /sbin/resolvconf ] ; then
+ cat $PPPCONF | resolvconf -a $PPP_IFACE
+elif [ -f $PPPCONF ] ; then
if [ -f $ACTUALCONF ] ; then
if [ ! -h $ACTUALCONF -o ! "`readlink $ACTUALCONF 2>&1`" = "$PPPCONF" ] ; then
mv $ACTUALCONF $ACTUALCONF.ppporig
diff --git a/recipes/ppp/files/92removedns b/recipes/ppp/files/92removedns
index 2eadec6..aa3304d 100644
--- a/recipes/ppp/files/92removedns
+++ b/recipes/ppp/files/92removedns
@@ -1,5 +1,7 @@
#!/bin/sh
ACTUALCONF=/var/run/resolv.conf
-if [ -f $ACTUALCONF.ppporig ] ; then
+if [ -x /sbin/resolvconf ] ; then
+ resolvconf -d $PPP_IFACE
+elif [ -f $ACTUALCONF.ppporig ] ; then
mv $ACTUALCONF.ppporig $ACTUALCONF
fi
diff --git a/recipes/ppp/ppp_2.4.3.bb b/recipes/ppp/ppp_2.4.3.bb
index 3b1f8ad..4c7b168 100644
--- a/recipes/ppp/ppp_2.4.3.bb
+++ b/recipes/ppp/ppp_2.4.3.bb
@@ -3,7 +3,7 @@ DESCRIPTION = "Point-to-Point Protocol (PPP) daemon"
HOMEPAGE = "http://samba.org/ppp/"
DEPENDS = "libpcap"
LICENSE = "BSD GPLv2"
-PR = "r6"
+PR = "r7"
SRC_URI = "http://ppp.samba.org/ftp/ppp/ppp-${PV}.tar.gz \
file://ppp-2.4.3-mppe-mppc-1.1.patch;patch=1 \
More information about the Openembedded-commits
mailing list