slitaz-boot-scripts diff etc/init.d/rcS @ rev 453
etc/init.d/rcS: do not start udevd twice
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 05 08:08:51 2019 +0100 (2019-02-05) |
parents | 7d4da3b01181 |
children | 01ab2b1d9b4d |
line diff
1.1 --- a/etc/init.d/rcS Thu Oct 05 15:33:26 2017 +0300 1.2 +++ b/etc/init.d/rcS Tue Feb 05 08:08:51 2019 +0100 1.3 @@ -34,8 +34,10 @@ 1.4 udevadm hwdb --update 1.5 fi 1.6 1.7 - echo 'Starting udev daemon...' 1.8 - udevd --daemon 2>/dev/null 1.9 + if [ -z "$(pidof udevd)" ]; then 1.10 + echo 'Starting udev daemon...' 1.11 + udevd --daemon 2>/dev/null 1.12 + fi 1.13 1.14 echo 'Udevadm requesting events from the Kernel...' 1.15 udevadm trigger