3 ms·
Surely /dev/power would return “1” when you read it (“0” when it is powered down, of course), and “echo 0 > /dev/power” would turn the machine off. :-)
by smcl 8y ago
Surely /dev/power would return “1” when you read it (“0” when it is powered down, of course), and “echo 0 > /dev/power” would turn the machine off.
:-)
- laumars 8y agoPower is a physical state rather than a logical one. It would make more sense defining runlevels that way.
- yjftsjthsd-h 8y agoOh, we actually do something like that already; CPUs are listed in /sys and you can enable or disable them by echoing 0/1 to their power file.
- DonHopkins 8y agoAnd for all your two-phase alternating current and trigonometric needs, /dev/sin and /dev/cos could return sine and cosine waves!
- agumonkey 8y ago/bin/cosh