From d67f89a24d6de539ec904380eec91197d15a692a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sun, 07 Dec 2014 17:59:10 -0500 Subject: Check if device is mounted --- diff --git a/debeagle.sh b/debeagle.sh index 6b9b575..ecb7588 100644 --- a/debeagle.sh +++ b/debeagle.sh @@ -60,6 +60,9 @@ main() else error 1 'Device %s not found\n' "${target}" fi + if grep "^${target}" /proc/mounts; then + error 1 'Device %s mounted\n' "${target}" + fi } print_usage() -- cgit v0.9.1