2024-02-08 18:36:37 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
msg_connected="✓ Security key connected"
|
|
|
|
msg_disconnected="𐄂 Security key not connected\n"
|
|
|
|
|
|
|
|
lsusb | grep Lexar > /dev/null
|
|
|
|
|
|
|
|
if [ "$?" == 0 ]; then
|
2024-04-26 15:09:23 -04:00
|
|
|
printf "[ ✓ ] Security key connected.\n"
|
2024-02-08 18:36:37 -05:00
|
|
|
else
|
2024-04-26 15:09:23 -04:00
|
|
|
printf "[ 𐄂 ] Security key disconnected.\n"
|
2024-02-08 18:36:37 -05:00
|
|
|
fi
|