Skip to content
Browse files

[enhance] spawn.sh: use seq instead of gseq on Lion

  • Loading branch information...
1 parent e5f6f7b commit 17c3909dd7f058874dc844decef44df95d1c7296 @Aqua-Ye Aqua-Ye committed Feb 7, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 dissemination/spawn.sh
View
9 dissemination/spawn.sh
@@ -23,6 +23,7 @@ set -e
# Author: Louis Gesbert
# Author: Hugo Venturini
+# Author: Frederic Ye (minor maintenance)
DEBUG=${DEBUG:-0}
@@ -73,6 +74,7 @@ if ! HAPROXY_BIN=$(which haproxy); then
fi
OS=$(uname -s)
+OS_REL=$(uname -r | tr -d '.')
TMP_DIR=""
SEQ=""
@@ -89,7 +91,12 @@ case $OS in
else
MDNS="$MDNS -G v4"
fi
- SEQ="gseq"
+ if [ $OS_REL -gt $(echo "11.0.0" | tr -d '.') ]; then
+ SEQ="seq"
+ else
+ SEQ="gseq"
+ fi
+ echo_debug "using $SEQ"
;;
Linux|*)
# no no no ... it does NOT mean the same thing !

0 comments on commit 17c3909

Please sign in to comment.
Something went wrong with that request. Please try again.