packages: netconsole/netconsole.init, netconsole/netconsole.spec - rel 3; d...

arekm arekm at pld-linux.org
Mon Jun 6 08:22:53 CEST 2011


Author: arekm                        Date: Mon Jun  6 06:22:52 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rel 3; don't use ifconfig, it's obsolete

---- Files affected:
packages/netconsole:
   netconsole.init (1.12 -> 1.13) , netconsole.spec (1.18 -> 1.19) 

---- Diffs:

================================================================
Index: packages/netconsole/netconsole.init
diff -u packages/netconsole/netconsole.init:1.12 packages/netconsole/netconsole.init:1.13
--- packages/netconsole/netconsole.init:1.12	Tue May 25 12:18:22 2010
+++ packages/netconsole/netconsole.init	Mon Jun  6 08:22:47 2011
@@ -42,12 +42,8 @@
 		return 1
 	fi
 
-	# TODO: use ip(8)
-	LC_ALL=C /sbin/ifconfig "${DEVICE}" 1>/dev/null 2>/dev/null
-	ret=$?
-
-	if [ -z "${DEVICE}" -o "${ret}" -gt 0 ]; then
-		nls "Source device invalid."
+	if [ ! -e "/sys/class/net/${DEVICE}" ]; then
+		nls "Can't find ${DEVICE} - invalid."
 		return 1
 	fi
 

================================================================
Index: packages/netconsole/netconsole.spec
diff -u packages/netconsole/netconsole.spec:1.18 packages/netconsole/netconsole.spec:1.19
--- packages/netconsole/netconsole.spec:1.18	Sun Feb  6 17:56:25 2011
+++ packages/netconsole/netconsole.spec	Mon Jun  6 08:22:47 2011
@@ -3,7 +3,7 @@
 Summary(pl.UTF-8):	Skrypt inicjalizujący do wczytywania modułu netconsole.ko
 Name:		netconsole
 Version:	0.3
-Release:	2
+Release:	3
 License:	GPL
 Group:		Base
 Source0:	%{name}.init
@@ -61,6 +61,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.19  2011/06/06 06:22:47  arekm
+- rel 3; don't use ifconfig, it's obsolete
+
 Revision 1.18  2011/02/06 16:56:25  sparky
 - unified %clean section
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/netconsole/netconsole.init?r1=1.12&r2=1.13&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/netconsole/netconsole.spec?r1=1.18&r2=1.19&f=u



More information about the pld-cvs-commit mailing list