aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.d
diff options
context:
space:
mode:
authorJens Schweikhardt <schweikh@FreeBSD.org>2016-04-24 10:52:59 +0000
committerJens Schweikhardt <schweikh@FreeBSD.org>2016-04-24 10:52:59 +0000
commit9b3940931ddc30603f6a65f9b28ece578984a900 (patch)
tree9df798799738f9caf6bb012577f3ea9b8e375721 /etc/rc.d
parent2ada524ecedc8a77a595e603e3688c67ad54507e (diff)
downloadsrc-9b3940931ddc30603f6a65f9b28ece578984a900.tar.gz
src-9b3940931ddc30603f6a65f9b28ece578984a900.zip
Cosmetics: - no need to escape the newline after '|'
- parenthesize the "case" string for symmetry and improved search for matching paren (e.g. with vi's %)
Notes
Notes: svn path=/head/; revision=298537
Diffstat (limited to 'etc/rc.d')
-rwxr-xr-xetc/rc.d/zvol8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc.d/zvol b/etc/rc.d/zvol
index 03495220f0d6..6fdc280d46d8 100755
--- a/etc/rc.d/zvol
+++ b/etc/rc.d/zvol
@@ -19,10 +19,10 @@ required_modules="zfs"
zvol_start()
{
# Enable swap on ZVOLs with property org.freebsd:swap=on.
- zfs list -H -o org.freebsd:swap,name -t volume | \
+ zfs list -H -o org.freebsd:swap,name -t volume |
while read state name; do
case "${state}" in
- [oO][nN])
+ ([oO][nN])
swapon /dev/zvol/${name}
;;
esac
@@ -32,10 +32,10 @@ zvol_start()
zvol_stop()
{
# Disable swap on ZVOLs with property org.freebsd:swap=on.
- zfs list -H -o org.freebsd:swap,name -t volume | \
+ zfs list -H -o org.freebsd:swap,name -t volume |
while read state name; do
case "${state}" in
- [oO][nN])
+ ([oO][nN])
swapoff /dev/zvol/${name}
;;
esac