small style changes to encswap
This drops some unnecessary continue statements and changes command command substitution to use $() instead of ``.
This commit is contained in:
parent
39abbed7cb
commit
883ea31f80
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user