wok-tiny rev 176
busybox: fix modules order
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 14 19:16:39 2021 +0000 (2021-07-14) |
parents | e88834c5a2a0 |
children | 07306c98c4d7 |
files | base-tiny/stuff/etc/init.d/rcS busybox-net/receipt busybox/receipt |
line diff
1.1 --- a/base-tiny/stuff/etc/init.d/rcS Wed Jul 14 14:47:52 2021 +0000 1.2 +++ b/base-tiny/stuff/etc/init.d/rcS Wed Jul 14 19:16:39 2021 +0000 1.3 @@ -29,6 +29,7 @@ 1.4 status 1.5 if [ -e /sbin/mdev ]; then 1.6 echo -n "Start hotplug..." 1.7 + [ -e /proc/sys/kernel/hotplug ] && 1.8 echo /sbin/mdev > /proc/sys/kernel/hotplug 1.9 mdev -s 1.10 status
2.1 --- a/busybox-net/receipt Wed Jul 14 14:47:52 2021 +0000 2.2 +++ b/busybox-net/receipt Wed Jul 14 19:16:39 2021 +0000 2.3 @@ -200,5 +200,4 @@ 2.4 -e "s/^STATIC=.*/STATIC=\"$STATIC\"/" \ 2.5 -e "s/^DHCP=.*/DHCP=\"$DHCP\"/" \ 2.6 -e "s/^IP=.*/IP=\"$IP\"/" $1/etc/network.conf 2.7 - [ -n "$HOSTNAME" ] && echo $HOSTNAME > $1/etc/hostname 2.8 }
3.1 --- a/busybox/receipt Wed Jul 14 14:47:52 2021 +0000 3.2 +++ b/busybox/receipt Wed Jul 14 19:16:39 2021 +0000 3.3 @@ -151,9 +151,9 @@ 3.4 ln -fs /proc/mounts $1/etc/mtab 3.5 cat >> $1/boot/mkrootfs.pre_exec <<EOT 3.6 if [ -s modules ]; then 3.7 - while read mod; do 3.8 + tac modules | while read mod; do 3.9 sed -i "s/LOAD_MODULES=./&\$mod /" etc/rcS.conf 3.10 - done < modules 3.11 + done 3.12 grep ^LOAD_MODULES= etc/rcS.conf >> etc/packages.conf 3.13 cp etc/packages.conf boot/packages.conf 3.14 rm -f modules