#!/bin/bash
#
# Solaris Sparc RC5 activation script
#
# Version   : 1.0.6
# Date      : 10/22/1999
# 
# Copyright : (C) Brad Mertz 1999
#
# Please refer to README for Disclaimer and GNU GENERAL PUBLIC LICENSE
#
# Modify the /rc5/... path to whereever RC5 is located.  You MUST use 
# absolute paths, ~/..., etc will not always work through RSH.
#

# Removes shutdown file for RC5
rm -f /rc5/sparc/exitrc5.now

# Safety precaution encase the INI file gets deleted!
cp /rc5/backup/rc5_sparc.ini /rc5/sparc/rc5_sparc.ini

# Spawns RC5 on any computers listed in the sparc_nodes file.

for hostname in $(cat /rc5/sparc/sparc_nodes); do
    echo $hostname && /usr/bin/rsh -n $hostname /rc5/automated/sparc_script &
#    sleep 1
done


