Changeset 457


Ignore:
Timestamp:
Oct 22, 2012, 10:37:49 PM (8 years ago)
Author:
amain
Message:

bitten: update-self to allow pushing new configs to slaves

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/contrib/bitten/slaves/include/slaves.inc.sh

    r427 r457  
    1818# along with this program.  If not, see <http://www.gnu.org/licenses/>.
    1919
     20run=${1}
     21ini=${2}
     22
     23if [ ! "${run}" = "run" ]
     24then
     25  svn update ${BASEDIR}/../
     26  exec ${BASEDIR}/$(basename $0) run $@
     27else
     28  shift
     29  shift
     30fi
    2031
    2132function usage()
    2233{
    2334   cat <<EOF
    24 usage: $(basename $0) <slave.ini>
     35usage: $(basename $0) <slave.ini> [ slave-arg1, .. ]
    2536
    2637Start bitten slave with <slave.ini> configuration.
     
    4354}
    4455
    45 [ ! -f "$1" ] && usage
     56[ ! -f "${ini}" ] && usage
    4657
    47 eval $(awk -f ${BASEDIR}/../include/ini.awk ${1})
     58eval $(awk -f ${BASEDIR}/../include/ini.awk ${ini})
    4859
    49 ini=${1}
    5060arch=${1/.*/}
    5161name=$(hostname -f)
     
    5363server="http://dev.debwrt.net"
    5464log=${work}/bitten.log
    55 
    56 shift
    5765
    5866mkdir -p ${work}
Note: See TracChangeset for help on using the changeset viewer.