#!/bin/sh # # Script to set up host for multicast from 2nd Int. WWW Conf. (Chicago) # October 1994, Jason Ng & RPC Rodgers, NLM # # # Multicast group address #multi_grp_add=224.2.132.174 echo "Which room are you setting up in? 1) Great Hall 2) Gold 3) Plaza Indicate selection: " read dummy case "$dummy" in 1) # -- great hall echo "chrome224" > /etc/nodename echo "chrome224" > /etc/hostname.le0 echo "Your choice is GREAT HALL. " thismachine="198.133.26.230" break ;; 2) # -- gold room echo "chrome32" > /etc/nodename echo "chrome32" > /etc/hostname.le0 echo "Your choice is GOLD ROOM. " thismachine="198.133.26.62" break ;; 3) # -- plaza room echo "chrome32" > /etc/nodename echo "chrome32" > /etc/hostname.le0 echo "Your choice is PLAZA ROOM. " thismachine="198.133.26.62" break ;; *) echo "Error. Start again. Please select 1-3 instead" exit ;; esac # --- update mrouted.conf # tunnelstring="130.14.30.64 metric 1 threshold 32" echo "phyint $thismachine" > /etc/mrouted.conf echo "tunnel $thismachine $tunnelstring" >> /etc/mrouted.conf echo "Now you can power down and move the machine to the next room"