It's new
This commit is contained in:
parent
27a817fff3
commit
9f65e9b248
12 changed files with 75 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue