All pastes #992798 Raw Edit

Anonymous

public text v1 · immutable
#992798 ·published 2008-04-22 03:14 UTC
rendered paste body
#!/bin/bash
#vpn_hsr

#locations
#location of hsr_connect
connect=./hsr_connect
#location of hsr_samba
smb_hsr=./hsr_samba

#variables
profile="hsr_"$2


case "S1" in
	'up')

	case "$2" in
     		'remote')
        	echo "starting up vpn client..."
		$connect $profile &
		#smbmount //vf3.hsr.ch/tmp /mnt/scratch -o username=bsulzer workgroup=hsr.ch
        	;;
     		
		'wireless')
        	echo "not yet implemented"
        	;;
     		*)
        	echo "Usage: $0 [up|down] [remote|wireless]"
        	;;
		
	esac
	
	'down')
		echo "shutting down hsr_connection"
		;;
	*)
	echo "Usage: $0 [up|down] [remote|wireless]"
	;;
esac