Update of /cvsroot/leaf/src/bering-uclibc4/source/dhcfind
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv24367
Modified Files:
buildtool.cfg dhcfind dhcfind.conf
Log Message:
Added lock file, edited default config
Index: dhcfind
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/dhcfind/dhcfind,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** dhcfind 26 Apr 2010 09:02:35 -0000 1.1.1.1
--- dhcfind 13 Dec 2010 16:49:12 -0000 1.2
***************
*** 5,8 ****
--- 5,15 ----
PATH=/bin:/sbin:/usr/bin:/usr/sbin
+ if [ -f $LOCK ]; then
+ echo "Lockfile is present, $0 is running?"
+ exit 1
+ fi
+
+ touch $LOCK
+
ifaces=`ip a|awk "/$IFACEEXP/"'{ sub(/:/,"",$2); print $2}'`
***************
*** 23,25 ****
fi
fi
! done
\ No newline at end of file
--- 30,34 ----
fi
fi
! done
!
! rm -f $LOCK
Index: dhcfind.conf
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/dhcfind/dhcfind.conf,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** dhcfind.conf 26 Apr 2010 09:02:35 -0000 1.1.1.1
--- dhcfind.conf 13 Dec 2010 16:49:12 -0000 1.2
***************
*** 1,4 ****
IFACEEXP='(eth|vlan1)[0-9]+:'
AGGR=0
! URL=http://billing.seti.kr.ua/dhcp.cgi
--- 1,5 ----
IFACEEXP='(eth|vlan1)[0-9]+:'
AGGR=0
! URL=http://address.com/dhcp.cgi
! LOCK=/var/run/dhcfind.lock
Index: buildtool.cfg
===================================================================
RCS file: /cvsroot/leaf/src/bering-uclibc4/source/dhcfind/buildtool.cfg,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** buildtool.cfg 26 Apr 2010 09:02:35 -0000 1.1.1.1
--- buildtool.cfg 13 Dec 2010 16:49:12 -0000 1.2
***************
*** 29,33 ****
<dhcfind>
Version = 0.1
! Revision = 2
Help <<EOF
--- 29,33 ----
<dhcfind>
Version = 0.1
! Revision = 3
Help <<EOF
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
leaf-cvs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits