Fix read from bmcd_statepipe
This commit is contained in:
parent
986d7c53bc
commit
91c03fec6d
2
bmc.sh
2
bmc.sh
|
@ -76,7 +76,7 @@ locate_off() {
|
||||||
echo "locate_off" > ${bmcd_cmdpipe}
|
echo "locate_off" > ${bmcd_cmdpipe}
|
||||||
}
|
}
|
||||||
readpower() {
|
readpower() {
|
||||||
powerstate_raw=$(cat ${bmcd_statepipe})
|
powerstate_raw=$(echo < ${bmcd_statepipe})
|
||||||
if [ "${powerstate_raw}" -eq 1 ]; then
|
if [ "${powerstate_raw}" -eq 1 ]; then
|
||||||
powerstate="\e[32mOn\e[0m"
|
powerstate="\e[32mOn\e[0m"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue