I have put together a patch that adds power control to conserver. I
have to say that I'm not really a C programmer and I'm sure this will
need to be cleaned up before its accepted. But I had an itch and wanted
to contribute.
I've implemented the following commands for Default and Console:
powerreset, poweroff, and powersubst.
Here is an example from my Default Global section...
powerreset /usr/sbin/power-reset --system C;
poweroff /usr/sbin/power-off --system C;
powersubst C=cs;
a snippit from the help section:
e change escape sequence f force attach read/write
g group info i information dump
k0 iniate power off k1 iniate power reset
L toggle logging on/off l? break sequence list
I'd appreciate any feedback and if anyone else finds this useful.
Obviously this doesn't handle the configuring of the command that does
the actual work. But I think thats outside the scope of conserver.
have to say that I'm not really a C programmer and I'm sure this will
need to be cleaned up before its accepted. But I had an itch and wanted
to contribute.
I've implemented the following commands for Default and Console:
powerreset, poweroff, and powersubst.
Here is an example from my Default Global section...
powerreset /usr/sbin/power-reset --system C;
poweroff /usr/sbin/power-off --system C;
powersubst C=cs;
a snippit from the help section:
e change escape sequence f force attach read/write
g group info i information dump
k0 iniate power off k1 iniate power reset
L toggle logging on/off l? break sequence list
I'd appreciate any feedback and if anyone else finds this useful.
Obviously this doesn't handle the configuring of the command that does
the actual work. But I think thats outside the scope of conserver.