[services-cvs] CVS services/proc

CVS User miham root at tempel.bibl.u-szeged.hu
2004. Nov. 14., V, 00:21:14 CET


Update of /var/lib/cvs/services/proc
In directory tempel:/tmp/cvs-serv7216/services/proc

Modified Files:
	boinc.sh 
Log Message:
Nah, elb at sztam az ifet :)


--- /var/lib/cvs/services/proc/boinc.sh	2004/11/13 22:58:38	1.11
+++ /var/lib/cvs/services/proc/boinc.sh	2004/11/13 23:21:14	1.12
@@ -14,7 +14,7 @@
 NAME=boinc
 SCRIPTNAME=/etc/init.d/$NAME
 BOINCFILE=boinc_4.09_i686-pc-linux-gnu
-DEBUGLEVEL=0
+DEBUGLEVEL=2
 
 export http_proxy=http://10.0.7.20:3128/
 # Gracefully exit if the package has been removed.
@@ -34,6 +34,16 @@
 ifup_serpub() {
   decho 1 -ne "Bringing up interface to SERPUB VLAN.."
   if (grep "eth0.0300" /etc/network/interfaces >>/dev/null 2>>/dev/null); then
+    decho 2 -ne '.'
+    if (ifconfig | grep "eth0.0300" >>/dev/null 2>>/dev/null); then
+      decho 2 -ne 'Interface already up!\n'
+      return
+    else
+      decho 2 -ne 'Bringing up interface..'
+      ifup eth0.0300
+      decho 2 -ne '. Ok!\n'
+    fi
+  else
     decho 2 -ne "Configuring interface.."
     hostnum=$(hostname | cut -c5-)
     decho 2 -ne '.'
@@ -58,17 +68,6 @@
     ifup eth0.0300
     decho 2 -ne '. Ok!\n'
     decho 1 -ne '. Ok!\n'
-  else
-  if [ $? -eq 0 ]; then
-    decho 2 -ne '.'
-    if (ifconfig | grep "eth0.0300" >>/dev/null 2>>/dev/null); then
-      decho 2 -ne 'Bringing up interface..'
-      ifup eth0.0300
-      decho 2 -ne '. Ok!\n'
-    else
-      decho 2 -ne 'Interface already up!\n'
-      return
-    fi
   fi
 }
 





További információk a(z) Services-cvs levelezőlistáról