Created
April 11, 2009 03:30
-
-
Save demonbane/93444 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IP=$(wget -qO - http://ww) | |
while [ "$type" != "0" ]; do | |
echo 1 - Eject SCD0 | |
echo 2 - Eject SCD1 | |
echo 3 - Close SCD0 | |
echo 4 - Close SCD1 | |
echo 0 - Quit | |
read -n1 type | |
case "$type" in | |
"1") | |
ssh matt@$IP -p 21 sudo eject /dev/scd0 | |
;; | |
"2") | |
ssh matt@$IP -p 21 sudo eject /dev/scd1 | |
;; | |
"3") | |
ssh matt@$IP -p 21 sudo eject -t /dev/scd0 | |
;; | |
"4") | |
ssh matt@$IP -p 21 sudo eject -t /dev/scd1 | |
;; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment