[LON-CAPA-cvs] cvs: loncom /init.d loncontrol

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 28 Jan 2006 11:21:43 -0000


albertel		Sat Jan 28 06:21:43 2006 EDT

  Modified files:              
    /loncom/init.d	loncontrol 
  Log:
  - suse puts it in /usr/sbin
  
  
Index: loncom/init.d/loncontrol
diff -u loncom/init.d/loncontrol:1.26 loncom/init.d/loncontrol:1.27
--- loncom/init.d/loncontrol:1.26	Mon Jun 13 15:54:28 2005
+++ loncom/init.d/loncontrol	Sat Jan 28 06:21:42 2006
@@ -1,6 +1,6 @@
 #!/usr/bin/perl
 #
-# $Id: loncontrol,v 1.26 2005/06/13 19:54:28 albertel Exp $
+# $Id: loncontrol,v 1.27 2006/01/28 11:21:42 albertel Exp $
 #
 # The LearningOnline Network with CAPA
 #
@@ -47,6 +47,12 @@
     # Firewall code is based on the code in FC2 /etc/init.d/ntpd
     my $fw_chain = 'RH-Firewall-1-INPUT';
     my $iptables = '/sbin/iptables';
+    if (! -e $iptables) {
+	$iptables = '/usr/sbin/iptables';
+	if (! -e $iptables) {
+	    print("Unable to find iptables command\n");
+	}
+    }
     my $lond_port = 5663;
     my $lonhttpd_port = 8080;