slitaz-boot-scripts 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 (6 weeks ago)
parents 45e6a718f31e
children 01ab2b1d9b4d
files etc/init.d/rcS
line diff
     1.1 --- a/etc/init.d/rcS	Mon Feb 04 11:56:15 2019 +0100
     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