Skip to content

Commit 03ccaad

Browse files
J-Kappesenoch85
andauthored
tpm2-unlock.sh: replace dmesg search term "2.0" with "2" (#2693)
* tpm2-unlock.sh: replace dmesg search term "2.0" with "2" Signed-off-by: J-Kappes <[email protected]> * tpm2-unlock.sh: simplify dmesg search Signed-off-by: J-Kappes <[email protected]> --------- Signed-off-by: J-Kappes <[email protected]> Co-authored-by: Daniel Hansson <[email protected]>
1 parent efef06a commit 03ccaad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

not-supported/tpm2-unlock.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ fi
4444

4545
# Test if device is present
4646
# https://github.com/noobient/noobuntu/wiki/Full-Disk-Encryption#tpm-2
47-
if ! dmesg | grep -i "tpm" | grep -q "2\.0"
47+
if ! dmesg | grep -iq "tpm2"
4848
then
4949
msg_box "No TPM 2.0 device found."
5050
exit 1

0 commit comments

Comments
 (0)