Mailinglist Archive: opensuse (2995 mails)

< Previous Next >
Re: [opensuse] Making sysfs values persist across reboot
  • From: Aaron Kulkis <akulkis00@xxxxxxxxxx>
  • Date: Thu, 01 Nov 2007 13:05:43 -0400
  • Message-id: <472A0767.6050304@xxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >