Date: Sun, 24 Apr 2016 10:53:00 +0000 (UTC) From: Jens Schweikhardt <schweikh@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298537 - head/etc/rc.d Message-ID: <201604241053.u3OAr0bn072180@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: schweikh Date: Sun Apr 24 10:52:59 2016 New Revision: 298537 URL: https://svnweb.freebsd.org/changeset/base/298537 Log: 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 %) Modified: head/etc/rc.d/zvol Modified: head/etc/rc.d/zvol ============================================================================== --- head/etc/rc.d/zvol Sun Apr 24 09:05:29 2016 (r298536) +++ head/etc/rc.d/zvol Sun Apr 24 10:52:59 2016 (r298537) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604241053.u3OAr0bn072180>