#!/bin/bash
#
# RedHat X86 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 the shutdown file for RC5
rm -f /rc5/x86/exitrc5.now

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

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

for hostname in $(cat /rc5/x86/x86_nodes); do
    echo $hostname && /usr/bin/rsh -n $hostname /rc5/automated/x86_script &
    sleep 2
done
