From: ianmdlvl Date: Sun, 30 Jul 2006 13:44:07 +0000 (+0000) Subject: get example settings right; use break properly X-Git-Tag: debian_version_4_1_2~2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=chiark-utils.git;a=commitdiff_plain;h=aafd617b49ae360300140a00b4548bbf0284882d get example settings right; use break properly --- diff --git a/backup/examples/chiark/settings.sh b/backup/examples/chiark/settings.sh index d8b8713..4fad8c5 100755 --- a/backup/examples/chiark/settings.sh +++ b/backup/examples/chiark/settings.sh @@ -1,6 +1,6 @@ # shell script fragment setting options # defaults for currently implemented parameters are -lvm_vg=vg_main +#lvm_vg= #lvm_lv=chiark_backup #lvm_lvsize_opts= # -l (lvm) diff --git a/backup/remountrocp b/backup/remountrocp index d9ba155..65037ee 100755 --- 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'