You are not logged in.

#1 2012-10-22 16:19:25

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

systemd tmpfiles not working

I am trying to move to systemd. I had an /etc/rc.local file containing:

echo 2 > /sys/module/hid_apple/parameters/fnmode

I read the new way to do this should be using a file in /etc/tmpfiles.d, so I write /etc/tmpfiles.d/fnmode.conf with:

w /sys/module/hid_apple/parameters/fnmode - - - - 2

However it doesn't work. I also tried making the file executable with no success.

Offline

#2 2012-10-22 16:37:24

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: systemd tmpfiles not working

As far as I can tell, that should work. However, the better way to do this is to create '/etc/modprobe.d/hid_apple.conf' with:

options hid_apple fnmode=2

Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2012-10-23 14:55:26

adrianbs
Member
From: Uruguay
Registered: 2009-08-13
Posts: 31

Re: systemd tmpfiles not working

Thank you. That worked, however I don't know why the systemd method didn't.

Offline

#4 2012-10-23 15:03:25

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: systemd tmpfiles not working

My suspect is that systemd tries to write that file too early, when the module is not loaded, so that it gets rewritten.


Mortuus in anima, curam gero cutis

Offline

Board footer

Powered by FluxBB