mirror of
https://git.yoctoproject.org/poky
synced 2026-03-06 15:29:40 +01:00
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
13 lines
292 B
Bash
13 lines
292 B
Bash
#!/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
|