mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-30 22:42:11 -05:00
15 lines
218 B
Plaintext
15 lines
218 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
DEVICE_NAME="${BLOCK_INSTANCE:-Keyboard}"
|
||
|
|
||
|
DEVICE_INFO=$(lsusb | grep -i "${DEVICE_NAME}")
|
||
|
|
||
|
if [[ "${DEVICE_INFO}" != "" ]]; then
|
||
|
echo "on"
|
||
|
echo "on"
|
||
|
echo ""
|
||
|
else
|
||
|
echo "na"
|
||
|
echo "na"
|
||
|
echo ""
|
||
|
fi
|