diff options
| author | Daniel Baumann <daniel@debian.org> | 2012-08-14 01:20:28 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2012-08-14 01:20:28 +0200 |
| commit | 4ecca9f9ba476c987f41fdb596bd5f4f53d85a3c (patch) | |
| tree | 8fd7500d311ee6409c89aa159f506064501aaf0d /scripts/boot/0120-read-only | |
| parent | ba42304070c7104fbe526f6d166b8bbce36a3cd4 (diff) | |
| download | live-boot-4ecca9f9ba476c987f41fdb596bd5f4f53d85a3c.tar.gz live-boot-4ecca9f9ba476c987f41fdb596bd5f4f53d85a3c.zip | |
Consistently using case instead of if for conditionals in script boilerplate.
Diffstat (limited to 'scripts/boot/0120-read-only')
| -rwxr-xr-x | scripts/boot/0120-read-only | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/scripts/boot/0120-read-only b/scripts/boot/0120-read-only index c05c162..859f771 100755 --- a/scripts/boot/0120-read-only +++ b/scripts/boot/0120-read-only @@ -18,10 +18,14 @@ Read_only () esac done - if [ "${LIVE_READ_ONLY}" != "true" ] - then - return 0 - fi + case "${LIVE_READ_ONLY}" in + true) + ;; + + *) + return 0 + ;; + esac # Marking some block devices as read-only to ensure that nothing # gets written as linux still writes to 'only' read-only mounted filesystems. |
