From: Thomas Zimmermann Date: Sat, 27 Mar 2010 16:28:08 +0000 (+0100) Subject: ppp: make if-up/-down scripts compatible to resolvconf (thx to Wonka) X-Git-Tag: Release-2010-05/1~222 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb594c1c5fba3c31bc785bdc537fcb928f014555;p=openembedded.git ppp: make if-up/-down scripts compatible to resolvconf (thx to Wonka) Signed-off-by: Thomas Zimmermann --- diff --git a/recipes/ppp/files/08setupdns b/recipes/ppp/files/08setupdns index 998219de97..5be2d3831b 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 2eadec6899..aa3304db76 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 3b1f8ad28d..4c7b16876f 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 \