public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] baselayout r3175 - branches/baselayout-1_12/net-scripts/net
@ 2010-09-18 11:27 Mike Frysinger (vapier)
  0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2010-09-18 11:27 UTC (permalink / raw
  To: gentoo-commits

Author: vapier
Date: 2010-09-18 11:27:58 +0000 (Sat, 18 Sep 2010)
New Revision: 3175

Modified:
   branches/baselayout-1_12/net-scripts/net/iproute2.sh
Log:
do not hardcode paths to `ip` #330115

Modified: branches/baselayout-1_12/net-scripts/net/iproute2.sh
===================================================================
--- branches/baselayout-1_12/net-scripts/net/iproute2.sh	2010-07-19 00:34:04 UTC (rev 3174)
+++ branches/baselayout-1_12/net-scripts/net/iproute2.sh	2010-09-18 11:27:58 UTC (rev 3175)
@@ -5,10 +5,10 @@
 # Fix any potential localisation problems
 # Note that LC_ALL trumps LC_anything_else according to locale(7)
 ip() {
-	LC_ALL=C /sbin/ip "$@"
+	LC_ALL=C ip "$@"
 }
 iproute2_tunnel() {
-	LC_ALL=C /sbin/ip tunnel "$@"
+	LC_ALL=C ip tunnel "$@"
 }
 
 # void iproute2_depend(void)
@@ -30,7 +30,7 @@
 #
 # Returns 1 if iproute2 is installed, otherwise 0
 iproute2_check_installed() {
-	[[ -x /sbin/ip ]] && return 0
+	type -P ip >/dev/null && return 0
 	${1:-false} && eerror "For iproute2 support, emerge sys-apps/iproute2"
 	return 1
 }




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-09-18 11:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-18 11:27 [gentoo-commits] baselayout r3175 - branches/baselayout-1_12/net-scripts/net Mike Frysinger (vapier)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox