7 lines
135 B
Plaintext
7 lines
135 B
Plaintext
|
#!/bin/bash
|
||
|
|
||
|
if [ `pwrstat -status | sed 's/^\s\+//' | grep -E ^State | awk '{ print $2; }'` != 'Normal' ]; then
|
||
|
exit 2;
|
||
|
fi
|
||
|
exit 0
|