From 03482e6daed95a62940aa5e6e6eef0e0ea90eaa3 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Thu, 16 Feb 2006 23:34:24 +0000 Subject: postinit function added (e.g. for running udevstart again) git-svn-id: http://svn.openslx.org/svn/openslx/dxs/ld4@78 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/init | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'initrd/initrd-stuff/init') diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index 77ff0212..b1858d72 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -397,17 +397,18 @@ d_mkbootld close # IP configuration is made and should not be updated automatically, udevd # should be killed if started within init killall -9 dhcpcd dhclient pump 2>/dev/null -# unmount the bind mounted modules directory #bash +# post init for some distro specific +postinit + +# unmount the bind mounted modules directory for i in 0 40 100 200 300 500 800 1000 1200; do usleep $i && umount -n /lib/modules/${KERNEL} 2>/dev/null && break error " Waited $i ticks to unmount kernel module directory ..." nonfatal done - - [ $i -gt 1000 ] && error " Unmount of the kernel modules directory \ failed for some reason. Some\n modprobe still active!?" # check for inittab file -- cgit v1.2.3-55-g7522