13 lines
263 B
Bash
Executable File
13 lines
263 B
Bash
Executable File
#!/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
|