Bash script for auto