Fix read from bmcd_statepipe

This commit is contained in:
Joshua Boniface 2017-03-31 04:45:08 +00:00
parent 986d7c53bc
commit 91c03fec6d
1 changed files with 1 additions and 1 deletions

2
bmc.sh
View File

@ -76,7 +76,7 @@ locate_off() {
echo "locate_off" > ${bmcd_cmdpipe}
}
readpower() {
powerstate_raw=$(cat ${bmcd_statepipe})
powerstate_raw=$(echo < ${bmcd_statepipe})
if [ "${powerstate_raw}" -eq 1 ]; then
powerstate="\e[32mOn\e[0m"
else