diff options
| author | Julien Voisin | 2015-03-03 18:20:04 +0100 |
|---|---|---|
| committer | Julien Voisin | 2015-03-03 18:20:04 +0100 |
| commit | b861e21a9e3785f6f0a2839ee649c3ef502e21ba (patch) | |
| tree | c286bcc9fb9c88f1d9d3f12cfe36afa10e34ca35 /script.sh | |
| parent | 1b27725e9630788639db4cac8f6231a4c6b8cc17 (diff) | |
Add some options to `mount` to be strictly ro
Diffstat (limited to 'script.sh')
| -rwxr-xr-x | script.sh | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -4,7 +4,7 @@ mkdir -p "$MOUNT_PATH" | |||
| 4 | 4 | ||
| 5 | while read name | 5 | while read name |
| 6 | do | 6 | do |
| 7 | mount --bind "$name" "$MOUNT_PATH" | 7 | mount -oloop,ro,noload "$name" "$MOUNT_PATH" |
| 8 | python ./scanner.py -f "$MOUNT_PATH" -t 1 | 8 | python ./scanner.py -f "$MOUNT_PATH" -t 1 |
| 9 | umount "$MOUNT_PATH" | 9 | umount "$MOUNT_PATH" |
| 10 | if [ $? -neq 0 ] | 10 | if [ $? -neq 0 ] |
