13 lines
180 B
Bash
Executable file
13 lines
180 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
state="$(grep -o '\w\+$' /proc/acpi/bbswitch)"
|
|
if [ "$state" == "ON" ]
|
|
then
|
|
echo ""
|
|
elif [ "$state" == "OFF" ]
|
|
then
|
|
echo ""
|
|
else
|
|
echo "?"
|
|
fi
|