slitaz-boot-scripts rev 441

rcS: copy /lib/udev/devices/* to /dev/ right after mounting /dev as devtmpfs for udev.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Sep 04 03:53:58 2017 +0300 (23 months ago)
parents 354d476130a4
children f12914c09028
files etc/init.d/rcS
line diff
     1.1 --- a/etc/init.d/rcS	Wed Jun 07 15:53:56 2017 -0400
     1.2 +++ b/etc/init.d/rcS	Mon Sep 04 03:53:58 2017 +0300
     1.3 @@ -29,6 +29,7 @@
     1.4  	action 'Mounting devtmpfs filesystem on: /dev'
     1.5  	mount -t devtmpfs devtmpfs /dev
     1.6  	status
     1.7 +	[ -d '/lib/udev/devices' ] && cp -af /lib/udev/devices/* /dev/
     1.8  
     1.9  	echo 'Starting udev daemon...'
    1.10  	udevd --daemon 2>/dev/null
    1.11 @@ -47,9 +48,9 @@
    1.12  fi
    1.13  
    1.14  # Before mounting filesystems we check fs specified in the file
    1.15 -# /etc/rcS.conf and variable $CHECK_FS. WE need udev started to
    1.16 +# /etc/rcS.conf and variable $CHECK_FS. We need udev started to
    1.17  # have /dev/* populated
    1.18 -if [ "$CHECK_FS" ]; then
    1.19 +if [ -n "$CHECK_FS" ]; then
    1.20  	mount -o remount,ro /
    1.21  	for i in $CHECK_FS; do
    1.22  		colorize 36 "Checking filesystem: $i"