From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.77) (envelope-from ) id 1SqU6P-0002lL-PG for garchives@archives.gentoo.org; Sun, 15 Jul 2012 19:03:34 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E00D1E074E; Sun, 15 Jul 2012 19:03:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id B120AE074E for ; Sun, 15 Jul 2012 19:03:16 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 233E41B4006 for ; Sun, 15 Jul 2012 19:03:16 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id BECFBE543E for ; Sun, 15 Jul 2012 19:03:13 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1342378863.883ea31f80c42696dfa9f9b5e97a16860be38243.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/encswap.in X-VCS-Directories: init.d/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 883ea31f80c42696dfa9f9b5e97a16860be38243 X-VCS-Branch: master Date: Sun, 15 Jul 2012 19:03:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c30398b4-e7a2-4d24-95ff-89e10e33764e X-Archives-Hash: 04aa822db579121cd3e5dda85238ff3c commit: 883ea31f80c42696dfa9f9b5e97a16860be38243 Author: William Hubbs gmail com> AuthorDate: Sun Jul 15 18:54:39 2012 +0000 Commit: William Hubbs gentoo org> CommitDate: Sun Jul 15 19:01:03 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3D883ea31f small style changes to encswap This drops some unnecessary continue statements and changes command command substitution to use $() instead of ``. --- init.d/encswap.in | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/init.d/encswap.in b/init.d/encswap.in index a03fe58..7df669d 100644 --- a/init.d/encswap.in +++ b/init.d/encswap.in @@ -11,10 +11,9 @@ start() { while read device mountpoint type options rest ; do case ":${device}:${type}:${options}" in :#*) - continue ;; *.bde:swap:sw) - passphrase=3D`dd if=3D/dev/random count=3D1 2>/dev/null | md5 -q` + passphrase=3D$(dd if=3D/dev/random count=3D1 2>/dev/null | md5 -q) device=3D"${device%.bde}" gbde init "${device}" -P "${passphrase}" || return 1 gbde attach "${device}" -p "${passphrase}" || return 1 @@ -31,7 +30,6 @@ stop() { while read device mountpoint type options rest ; do case ":${device}:${type}:${options}" in :#*) - continue ;; *.bde:swap:sw) device=3D"${device%.bde}"