This commit is contained in:
Geoffrey Frogeye 2018-08-19 11:29:59 +02:00
parent 27a817fff3
commit 9f65e9b248
12 changed files with 75 additions and 28 deletions

View file

@ -1,12 +1,18 @@
#!/usr/bin/env bash
state="$(grep -o '\w\+$' /proc/acpi/bbswitch)"
if [ "$state" == "ON" ]
if [ -f /proc/acpi/bbswitch ]
then
echo ""
elif [ "$state" == "OFF" ]
then
echo ""
echo -n 
state="$(grep -o '\w\+$' /proc/acpi/bbswitch)"
if [ "$state" == "ON" ]
then
echo ""
elif [ "$state" == "OFF" ]
then
echo ""
else
echo "?"
fi
else
echo "?"
echo
fi