diff options
author | dacook <schism@subverted.org> | 2011-01-10 09:24:10 -0700 |
---|---|---|
committer | dacook <schism@subverted.org> | 2011-01-11 12:20:40 -0700 |
commit | 04c37979c15ac7f37aa2452e7dc11af95a903494 (patch) | |
tree | 0926c3ce77086d381883e196775bc9bd33b028c3 /defaults | |
parent | GPG command-line handling (diff) | |
download | genkernel-04c37979c15ac7f37aa2452e7dc11af95a903494.tar.gz genkernel-04c37979c15ac7f37aa2452e7dc11af95a903494.tar.bz2 genkernel-04c37979c15ac7f37aa2452e7dc11af95a903494.zip |
Remove bashism
Get rid of bash-ish "==" equivalence test in checking if the LUKS_KEY ends in
.gpg. Use strict Bourne-compliant '=' instead.
Diffstat (limited to 'defaults')
-rwxr-xr-x | defaults/initrd.scripts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index ea53fbab..93daa5aa 100755 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -827,7 +827,7 @@ openLUKS() { fi # At this point a candidate key exists (either mounted before or not) good_msg "${LUKS_KEY} on device ${LUKS_KEYDEV} found" ${CRYPT_SILENT} - if [ $(echo ${LUKS_KEY} | grep -o '.gpg$') == ".gpg" ] && [ -e /sbin/gpg ] ; then + if [ $(echo ${LUKS_KEY} | grep -o '.gpg$') = ".gpg" ] && [ -e /sbin/gpg ] ; then [ -e /dev/tty ] && mv /dev/tty /dev/tty.org mknod /dev/tty c 5 1 cryptsetup_options="-d -" |