Re: [Nix-dev] Directly configuring sysfs or /sys (not sysctl)

2015-05-24 Thread Bjørn Forsman
On 24 May 2015 at 06:27, Roger Qiu roger@polycademy.com wrote: I think sysctl is not the same as sysfs in Linux. The sysfs is a vfs that is mounted on `/sys`, whereas sysctl only controls the settings that are available inside `/proc/sys`. Right. Sorry, I didn't pay enough attention. -

Re: [Nix-dev] Directly configuring sysfs or /sys (not sysctl)

2015-05-23 Thread Roger Qiu
Just listing the current possible methods for configuring /sys (I haven't tried all of them): * Configuring a custom systemd service to run on boot that just executes something like `bash -c 'echo ... /sys...` * Setting up a udev rule: http://serverfault.com/a/636759/147813 * Use systemd's

Re: [Nix-dev] Directly configuring sysfs or /sys (not sysctl)

2015-05-23 Thread Bjørn Forsman
On 23 May 2015 at 19:35, Roger Qiu roger@polycademy.com wrote: Just listing the current possible methods for configuring /sys (I haven't tried all of them): * Configuring a custom systemd service to run on boot that just executes something like `bash -c 'echo ... /sys...` * Setting up a

Re: [Nix-dev] Directly configuring sysfs or /sys (not sysctl)

2015-05-23 Thread Roger Qiu
I think sysctl is not the same as sysfs in Linux. The sysfs is a vfs that is mounted on `/sys`, whereas sysctl only controls the settings that are available inside `/proc/sys`. Not all the settings in `/sys` is related to the kernel. So it's probably better for it to be located in `boot.sys`.