Recent Changes - Search:

edit SideBar

Sh

Note: The wiki formating screws this up. If you want to copy the source code, you will need to edit the page to see it properly.

  1. !/bin/bash

TIMELIMIT=20

cd /tmp

  1. Note that this script is set to run at startup and (currently) in the background hence the beeps

beep

sudo mount /dev/cdrom /mnt/cdrom cp /mnt/cdrom/*.sh . clear

echo "Choose what role this machine plays for mrsync" echo "1. Source Machine" echo "2. Target Machine" echo echo "Any other key to exit" echo echo "Defaults to 2 after "$TIMELIMIT" seconds"

read -t $TIMELIMIT -n 1 CHOICE

if [ -z "$CHOICE" ] # Is null then

	CHOICE="2"

fi

case $CHOICE in

	"1" )
	clear	
	beep
	./source.sh
	;;

	"2" )
	clear	
	beep -r 5
	./target.sh
	;;

esac

Edit - History - Print - Recent Changes - Search
Page last modified on September 17, 2007, at 02:12 PM