SOURCES: netconsole.init - pldize formatting

glen glen at pld-linux.org
Mon Sep 29 13:25:55 CEST 2008


Author: glen                         Date: Mon Sep 29 11:25:55 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- pldize formatting

---- Files affected:
SOURCES:
   netconsole.init (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/netconsole.init
diff -u SOURCES/netconsole.init:1.4 SOURCES/netconsole.init:1.5
--- SOURCES/netconsole.init:1.4	Mon Sep 29 13:11:09 2008
+++ SOURCES/netconsole.init	Mon Sep 29 13:25:49 2008
@@ -81,13 +81,15 @@
 			TGT_MAC=''
 		fi
 
-		nls "Starting netconsole %s:%d(%s) -> %s:%d %s" "${SRC_IP}" "${SRC_PORT}" "${DEVICE}" "${TGT_IP}" "${TGT_PORT}" "${TGT_MAC}"
-		# else we use the MAC that we are given
+		msg_starting netconsole
 		modprobe netconsole netconsole=${SRC_PORT}@${SRC_IP}/${DEVICE},${TGT_PORT}@${TGT_IP}/${TGT_MAC}
 		RETVAL=$?
 		if [ $RETVAL = 0 ]; then
+			ok
 			dmesg -n ${LOGLEVEL}
 			touch /var/lock/subsys/netconsole
+		else
+			fail
 		fi
 	else
 		msg_already_running netconsole
@@ -96,7 +98,7 @@
 
 stop() {
 	if [ -f /var/lock/subsys/netconsole ]; then
-		nls "Stopping netconsole"
+		msg_stopping netconsole
 		modprobe -r netconsole
 		RETVAL=$?
 		if [ $RETVAL = 0 ]; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/netconsole.init?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list