#!/bin/sh msg_connected="✓ Security key connected" msg_disconnected="𐄂 Security key not connected\n" lsusb | grep Lexar > /dev/null if [ "$?" == 0 ]; then printf "[ ✓ ] Unlocked.\n" else printf "[ 𐄂 ] Locked.\n" fi