diff options
author | William Hubbs <w.d.hubbs@gmail.com> | 2012-07-15 13:54:39 -0500 |
---|---|---|
committer | William Hubbs <w.d.hubbs@gmail.com> | 2012-07-15 14:01:03 -0500 |
commit | 883ea31f80c42696dfa9f9b5e97a16860be38243 (patch) | |
tree | b2b3fade13ddb14ac3707af3f266ba747a58dfa5 /init.d/encswap.in | |
parent | 39abbed7cbdd57e28ac3bd8ccb3b47b709467092 (diff) |
small style changes to encswap
This drops some unnecessary continue statements and changes command
command substitution to use $() instead of ``.
Diffstat (limited to 'init.d/encswap.in')
-rw-r--r-- | 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 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}" |