]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Add support for "br-flock -1"
authorHarlan Stenn <stenn@ntp.org>
Sat, 20 Nov 2010 21:54:28 +0000 (16:54 -0500)
committerHarlan Stenn <stenn@ntp.org>
Sat, 20 Nov 2010 21:54:28 +0000 (16:54 -0500)
bk: 4ce84394eJ-hPaMrIXYQqrfoplSI6g

br-flock

index a55696d6938be52e61a868ea1622261a5173cbcd..abfd0ab4b1bc7d7489be6a5c169eb390360bade4 100755 (executable)
--- a/br-flock
+++ b/br-flock
@@ -1,8 +1,21 @@
 #! /bin/sh
 
+IAM=`hostname || uname -n`
+MYNAME=`IFS=. ; set $IAM ; echo $1`
+
+case "$1" in
+ '--one'|'-1')
+     shift
+     FB_FIRSTONLY=-1
+     LIST=$MYNAME
+     ;;
+ *)
+     FB_FIRSTONLY=
+esac
+
 case "$LIST" in
  '') LIST="deacon barnstable beauregard grundoon howland mort macabre";;
 esac
 
 export LIST
-flock-build --disable-parse-clocks "$@"
+flock-build $FB_FIRSTONLY --disable-parse-clocks "$@"