no error checking or anything sensible like that, use at your own risk ;)
tim.bowers@timDesktop ~ $cat ./bin/kill_drive #!/bin/bash echo 'You wish to kill '$1'. Are you sure? (y/n)' read consent if [ $consent != "y" ]; then echo 'Quitting' exit fi sudo shred -v /dev/$1; xmessage -nearmouse Finished killing $1 & exit
No comments:
Post a comment