From a83dbc958aea2d0e30d43495133e7ea94c1f006c Mon Sep 17 00:00:00 2001 From: thierry Date: Thu, 21 Jan 2010 13:49:19 +0000 Subject: [PATCH] -t only cleans the tracker --- scripts/reboot-all.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/reboot-all.sh b/scripts/reboot-all.sh index b814b10..276b801 100755 --- a/scripts/reboot-all.sh +++ b/scripts/reboot-all.sh @@ -5,9 +5,10 @@ COMMAND=$(basename $0) function usage () { - echo "$COMMAND [-abn]" + echo "$COMMAND [-abtn]" echo -e " -a\tall boxes, not just the test ones" echo -e " -b\tbuild boxes only" + echo -e " -t\tjust clean the trackers" echo -e " -n\tdry-run" exit 1 } @@ -15,10 +16,11 @@ function usage () { build_boxes="mirror $(echo build{1,2,3})" test_boxes="testplc $(echo testqemu{1,2,3} testqemu32-{1,2,3,4,5})" -while getopts "abnh" opt ; do +while getopts "abtnh" opt ; do case $opt in a) ALL_BOXES=true ;; b) BUILD_BOXES_ONLY=true ;; + t) TRACKERS_ONLY=true ;; n) DRY_RUN=true ;; h|*) usage ;; esac @@ -34,6 +36,9 @@ elif [ -n "$ALL_BOXES" ] ; then elif [ -n "$BUILD_BOXES_ONLY" ] ; then BOXES="$build_boxes" CLEAN_TRACKERS="" +elif [ -n "$TRACKERS_ONLY" ] ; then + BOXES="" + CLEAN_TRACKERS="yes" else BOXES="$test_boxes" fi -- 2.45.2