From 883ea31f80c42696dfa9f9b5e97a16860be38243 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Sun, 15 Jul 2012 13:54:39 -0500 Subject: 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 file changed, 1 insertion(+), 3 deletions(-) diff --git a/init.d/encswap.in b/init.d/encswap.in index a03fe581..7df669d8 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=`dd if=/dev/random count=1 2>/dev/null | md5 -q` + passphrase=$(dd if=/dev/random count=1 2>/dev/null | md5 -q) device="${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="${device%.bde}" -- cgit v1.2.3