Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292571 - net-dialup/ppp-2.4.4-r24 uses "readlink --canonicalise" long option in ip-up.sh (and down) which is unsupported by busybox readlink
Summary: net-dialup/ppp-2.4.4-r24 uses "readlink --canonicalise" long option in ip-up....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Dialup Developers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-09 19:59 UTC by Ed Wildgoose
Modified: 2009-11-16 22:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.