diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-03-03 16:27:30 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-03-05 15:24:05 +0000 |
commit | d05b1d06b5b8b84c2a40639ad28e31cd683f89a4 (patch) | |
tree | 11f46091a9ba4313266433a53433370ba912d95c /meta/recipes-connectivity/ppp/ppp/08setupdns | |
parent | 3c234df240a11903ef3588a2c078dcbce4ca1719 (diff) | |
download | openembedded-core-d05b1d06b5b8b84c2a40639ad28e31cd683f89a4.tar.gz |
ppp: upgrade to 2.4.6
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-connectivity/ppp/ppp/08setupdns')
-rw-r--r-- | meta/recipes-connectivity/ppp/ppp/08setupdns | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/ppp/ppp/08setupdns b/meta/recipes-connectivity/ppp/ppp/08setupdns new file mode 100644 index 0000000000..998219de97 --- /dev/null +++ b/meta/recipes-connectivity/ppp/ppp/08setupdns @@ -0,0 +1,12 @@ +#!/bin/sh +ACTUALCONF=/var/run/resolv.conf +PPPCONF=/var/run/ppp/resolv.conf +if [ -f $PPPCONF ] ; then + if [ -f $ACTUALCONF ] ; then + if [ ! -h $ACTUALCONF -o ! "`readlink $ACTUALCONF 2>&1`" = "$PPPCONF" ] ; then + mv $ACTUALCONF $ACTUALCONF.ppporig + fi + fi + + ln -sf $PPPCONF $ACTUALCONF +fi |