[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-svn
Subject:    [Ipcop-svn] SF.net SVN: ipcop:[4971] ipcop/trunk/src/rc.d/rc.red
From:       owes () users ! sourceforge ! net
Date:       2010-09-26 12:47:29
Message-ID: E1Ozqdd-0007gQ-Nf () sfp-svn-2 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 4971
          http://ipcop.svn.sourceforge.net/ipcop/?rev=4971&view=rev
Author:   owes
Date:     2010-09-26 12:47:29 +0000 (Sun, 26 Sep 2010)

Log Message:
-----------
Move some rc.red logmessages into the RED section

Modified Paths:
--------------
    ipcop/trunk/src/rc.d/rc.red

Modified: ipcop/trunk/src/rc.d/rc.red
===================================================================
--- ipcop/trunk/src/rc.d/rc.red	2010-09-23 19:42:08 UTC (rev 4970)
+++ ipcop/trunk/src/rc.d/rc.red	2010-09-26 12:47:29 UTC (rev 4971)
@@ -56,11 +56,11 @@
     push(@dhcpcommand, "$iface");
 
     if (system(@dhcpcommand)) {
-        &General::log('dhcp client fail');
+        &General::log('red', 'dhcp client fail');
         exit 1;
     }
     else {
-        &General::log('dhcp client success');
+        &General::log('red', 'dhcp client success');
     }
 }
 
@@ -120,7 +120,7 @@
     ###
     if ($netsettings{'RED_COUNT'} > 0) {
         if ($netsettings{'RED_1_DEV'} ne '') {
-            &General::log("Starting RED device $netsettings{'RED_1_DEV'}.");
+            &General::log("red", "Starting RED device $netsettings{'RED_1_DEV'}.");
 
             if ($netsettings{'RED_1_TYPE'} eq 'DHCP') {
                 if (open(FILE, ">/var/ipcop/red/iface")) { print FILE \
$netsettings{'RED_1_DEV'}; close FILE; } @@ -187,7 +187,7 @@
     }
 
     if ($pppsettings{'VALID'} ne 'yes') {
-        &General::log("Profile has errors.");
+        &General::log("ERROR: Profile has errors.");
         exit 1;
     }
 
@@ -202,10 +202,10 @@
         if (open(FILE, ">/var/ipcop/red/remote-ipaddress")) { print FILE \
$pppsettings{'GATEWAY'}; close FILE; }  }
     if ($pppsettings{'RECONNECTION'} eq 'dialondemand') {
-        &General::log("Dial-on-Demand waiting to dial \
$pppsettings{'PROFILENAME'}."); +        &General::log("red", "Dial-on-Demand waiting \
to dial $pppsettings{'PROFILENAME'}.");  }
     else {
-        &General::log("Dialling $pppsettings{'PROFILENAME'}.");
+        &General::log("red", "Dialling $pppsettings{'PROFILENAME'}.");
     }
 
     # ppp device node is not present after boot, create it


This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Ipcop-svn mailing list
Ipcop-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-svn


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic