chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
get example settings right; use break properly
[chiark-utils.git]
/
backup
/
remountrocp
diff --git
a/backup/remountrocp
b/backup/remountrocp
index d9ba15518a20c6279790b632b21c33ed88e9b965..65037ee0c3b423943183a32b927fd719605cfccf 100755
(executable)
--- a/
backup/remountrocp
+++ b/
backup/remountrocp
@@
-61,7
+61,7
@@
mount -t $remountrocp_fs $lvm_mount_opts "$lvpath" "$snmnt"
attempts=10
while true; do
- if mount -o remount,ro "$mountpoint"; then
last
; fi
+ if mount -o remount,ro "$mountpoint"; then
break
; fi
attempts=$(( $attempts - 1 ))
if [ $attempts = 0 ]; then
echo >&2 'cannot remount readonly'