hi
This commit is contained in:
12
scripts/check_security_key
Executable file
12
scripts/check_security_key
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
msg_connected="✓ Security key connected"
|
||||
msg_disconnected="𐄂 Security key not connected\n"
|
||||
|
||||
lsusb | grep Lexar > /dev/null
|
||||
|
||||
if [ "$?" == 0 ]; then
|
||||
printf "[✓] Security key connected.\n"
|
||||
else
|
||||
printf "[𐄂] Security key disconnected.\n"
|
||||
fi
|
||||
Reference in New Issue
Block a user