diff --git a/make_rootfs_auto.sh b/make_rootfs_auto.sh index d30a9175..7e2ce8e6 100755 --- a/make_rootfs_auto.sh +++ b/make_rootfs_auto.sh @@ -1,5 +1,13 @@ #!/bin/bash +# Catch ctrl-c to exit script - otherwise, loop just runs again +trap ctrl_c INT +function ctrl_c() { + echo "Exiting..." + exit 0 +} + +# Clear out any old rootfs copies rm -rf $(dirname $0)/out/rootfs_* # Did not work well on Linux.... works on OSX :-/