make doaction work for power off and on
This commit is contained in:
parent
e2de5b50f1
commit
4b70e9b2ff
@ -265,8 +265,11 @@ namespace EduNetworkBuilder
|
|||||||
case NBAction.replaceUPS:
|
case NBAction.replaceUPS:
|
||||||
break;
|
break;
|
||||||
case NBAction.poweroff:
|
case NBAction.poweroff:
|
||||||
|
source.PowerOff = true;
|
||||||
|
myNet.RegisterDeviceReset(source.hostname);
|
||||||
break;
|
break;
|
||||||
case NBAction.poweron:
|
case NBAction.poweron:
|
||||||
|
source.PowerOff = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user