[opensuse] Making sysfs values persist across reboot
Hi, all -- I'm trying to figure out if there's a way to get a setting made in the sysfs tree (in this case, /sys/devices/system/clocksource/clocksource0/current_clocksource) to persist across reboot. Under opensuse 10.3 using a xen kernel, the default value in this node is "xen". However, there is a bug that causes the machine to lock up if using that value, and so it needs to be changed to "jiffies", which is accomplished by doing echo "jiffies" > /sys/devices/system/clocksource/clocksource0/current_clocksource I can add this command to an init script (boot.local, for example). But I'm wondering if there's any alternative, such as the sysctl.conf file that controls the settings under /proc/sys Anyone know of one? Thanks! Ian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Marlier, Ian wrote:
Hi, all --
I'm trying to figure out if there's a way to get a setting made in the sysfs tree (in this case, /sys/devices/system/clocksource/clocksource0/current_clocksource) to persist across reboot.
Under opensuse 10.3 using a xen kernel, the default value in this node is "xen". However, there is a bug that causes the machine to lock up if using that value, and so it needs to be changed to "jiffies", which is accomplished by doing
echo "jiffies" > /sys/devices/system/clocksource/clocksource0/current_clocksource
I can add this command to an init script (boot.local, for example). But I'm wondering if there's any alternative, such as the sysctl.conf file that controls the settings under /proc/sys
Any other method would simply be a round-about way of doing EXACTLY what you are doing with your echo command. As someone who has been doing Unix and Linux administration for 15 years, my advice is this: You have a solution that works, so stick with it.
Anyone know of one?
Thanks!
Ian
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Tuesday 2007-10-30 at 12:38 -0400, Marlier, Ian wrote:
I can add this command to an init script (boot.local, for example). But I'm wondering if there's any alternative, such as the sysctl.conf file that controls the settings under /proc/sys
Perhaps some, in "/etc/sysconfig/sysctl". - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFHKwRXtTMYHG2NR9URAtkWAJ45YiuhbcCZ/V/gud8pkICFmoqB4gCeKzeW yukESAmZ8tCltr+lYOrW/6A= =zGKz -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Aaron Kulkis
-
Carlos E. R.
-
Marlier, Ian