Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 292571

Summary: net-dialup/ppp-2.4.4-r24 uses "readlink --canonicalise" long option in ip-up.sh (and down) which is unsupported by busybox readlink
Product: Gentoo Linux Reporter: Ed Wildgoose <gentoo>
Component: New packagesAssignee: Gentoo Dialup Developers <net-dialup>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ed Wildgoose 2009-11-09 19:59:43 UTC
Given it's desirable to use PPP on embedded boxes, could we please have the /etc/ppp/ip-[up|down]/40-dns.sh scripts ammended to use the short readlink option which is then compatible with both busybox and also the full size readlink tool.

eg:

--- /etc/ppp/ip-up.d/40-dns.sh  2009-11-09 14:47:44 +0000
+++ overlay/etc/ppp/ip-up.d/40-dns.sh   2008-02-29 00:06:20 +0000
@@ -19,7 +19,7 @@
                # (taken from debian's 0000usepeerdns)
 
                # follow any symlink to find the real file
-               REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
+               REALRESOLVCONF=$(readlink -f /etc/resolv.conf)
 
                if [ "$REALRESOLVCONF" != "/etc/ppp/resolv.conf" ]; then
 


Reproducible: Always
Comment 1 Alin Năstac (RETIRED) gentoo-dev 2009-11-16 22:16:33 UTC
Fixed in revision 2.4.4-r25.