Last active
April 1, 2017 09:31
-
-
Save andreabazerla/268a2bbf3e4b8ddd6925980d9cc54de0 to your computer and use it in GitHub Desktop.
Script in bash to eject CD tray in infinite loop.
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
#!/bin/bash | |
while [ 1 ] | |
do | |
eject -T /dev/sr0 | |
done & | |
chmod +x cd.sh | |
./cd.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment