packages: dhcpcd/dhcpcd-configure.patch - fix OS detection

lisu lisu at pld-linux.org
Sun Jun 13 14:04:07 CEST 2010


Author: lisu                         Date: Sun Jun 13 12:04:07 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- fix OS detection

---- Files affected:
packages/dhcpcd:
   dhcpcd-configure.patch (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/dhcpcd/dhcpcd-configure.patch
diff -u /dev/null packages/dhcpcd/dhcpcd-configure.patch:1.6
--- /dev/null	Sun Jun 13 14:04:07 2010
+++ packages/dhcpcd/dhcpcd-configure.patch	Sun Jun 13 14:04:00 2010
@@ -0,0 +1,32 @@
+--- dhcpcd-5.2.5/configure	2010-06-10 14:05:50.000000000 +0200
++++ dhcpcd-5.2.4/configure	2010-06-04 10:34:28.000000000 +0200
+@@ -113,26 +102,11 @@
+ 	# Derive OS from cpu-manufacturer-os-kernel
+ 	CPU=${TARGET%%-*}
+ 	REST=${TARGET#*-}
+-	if [ "$CPU" != "$REST" ]; then
+-		MANU=${REST%%-*}
+-		REST=${REST#*-}
+-		if [ "$MANU" != "$REST" ]; then
+-			OS=${REST%%-*}
+-			REST=${REST#*-}
+-			if [ "$OS" != "$REST" ]; then
+-				KERNEL=${REST%%-*}
+-			else
+-				# 3 tupple
+-				KERNEL=$OS
+-				OS=$MANU
+-				MANU=
+-			fi
+-		else
+-			# 2 tupple
+-			OS=$MANU
+-			MANU=
+-		fi
+-	fi
++	MANU=${REST%%-*}
++	REST=${REST#*-}
++	OS=${REST%%-*}
++	REST=${REST#*-}
++	KERNEL=${REST%%-*}
+ fi
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/dhcpcd/dhcpcd-configure.patch?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list