LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (http://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   improve rc.udev reload (http://www.linuxquestions.org/questions/slackware-installation-40/improve-rc-udev-reload-4175437013/)

rpetrov 11-13-2012 06:11 PM

improve rc.udev reload
 
After upgrade to 14.0 I note some issues with rc.udev reload - copy command drop write permission of already mounted /dev/shm.
Result is that some applications run as non superuser fail in call of sem_open() .
Probably this is obsolete work-around for old udev versions.

What about to replace copy command with two new lines that trigger change event for both valid device types ?

malekmustaq 11-14-2012 12:55 AM

Quote:

What about to replace copy command with two new lines that trigger change event for both valid device types ?
You can rewrite the script to fit your taste.

There is a safer way of reloading udev database and rules anyway--

Code:

~# udevadm control --reload
Good luck.

rpetrov 11-18-2012 02:29 PM

First command in rc.udev reload in case of reload is "udevadm control --reload" .

Post is about second line "cp --preserve=all --recursive --update /lib/udev/devices/* $UDEV_ROOT". This command remove write permissions from /dev/shm.
a) It could be resolved if source directory (/lib/udev/devices/shm) is with correct write permissions.
b) to remove second line

I guess that previous post mean that is save to remove line.


All times are GMT -5. The time now is 05:15 PM.