3 ms·
The power management system should be integrated with the file system so you can turn the power off by going "rm /dev/power". And also with the desktop so you c
by DonHopkins 8y ago
The power management system should be integrated with the file system so you can turn the power off by going "rm /dev/power". And also with the desktop so you can drag the power into the garbage can.
- smcl 8y agoSurely /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
- agumonkey 8y agorm seems violent, what about unlink /dev/plug :p ps: jokes aside, I do believe that if the filesystem as machine representation was enforced and design with good sense and average joe in mind, you'd probably not even need man (pardon the hyperbole)