diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-04-06 13:34:24 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2015-04-06 13:34:24 +0000 |
commit | c0432c491ee3d0affec7b85ce749fdd7085897f8 (patch) | |
tree | 7c10946589b1c3ab84a1422ad0e37b7863c3e2c4 /distrib | |
parent | a16c3d135fcded9cd356d6b280955c2dd88f44dc (diff) |
Use if then else instead of testing $_fstype twice.
OK krw@
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/install.sub | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index 8c4cdf5252e..7dc230b0904 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,4 +1,4 @@ -# $OpenBSD: install.sub,v 1.829 2015/04/05 12:37:14 rpe Exp $ +# $OpenBSD: install.sub,v 1.830 2015/04/06 13:34:23 rpe Exp $ # # Copyright (c) 1997-2015 Todd Miller, Theo de Raadt, Ken Westerback # Copyright (c) 2015, Robert Peichaer <rpe@openbsd.org> @@ -1877,12 +1877,12 @@ munge_fstab() { # Change read-only ffs to read-write since we'll potentially # write to these filesystems. - [[ $_fstype == ffs ]] && - _opt=$(echo $_opt | sed 's/[[:<:]]ro[[:>:]]/rw/') - # Mount non-ffs filesystems read only. - [[ $_fstype == ffs ]] || + if [[ $_fstype == ffs ]]; then + _opt=$(echo $_opt | sed 's/[[:<:]]ro[[:>:]]/rw/') + else _opt=$(echo $_opt | sed 's/[[:<:]]rw[[:>:]]/ro/') + fi # Write fs entry in fstab. # 1) prepend '/mnt' to the mount point. |