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/bin/hwautocfg | 3 --- initrd/initrd-stuff/init | 7 ++++--- 2 files changed, 4 insertions(+), 6 deletions(-) (limited to 'initrd/initrd-stuff') diff --git a/initrd/initrd-stuff/bin/hwautocfg b/initrd/initrd-stuff/bin/hwautocfg index a0bbb027..29cf98b8 100755 --- a/initrd/initrd-stuff/bin/hwautocfg +++ b/initrd/initrd-stuff/bin/hwautocfg @@ -437,8 +437,5 @@ echo -e "\tloadkeys -q ${KEYTABLE}\n" >>/mnt/etc/${D_INITDIR}/boot.ld configuration file generated by hwsetup could not\n be found." nonfatal displaysetup ${D_XF86CONFFILE} -# suse 9.3: because the detected devices nodes are stored and lost, initialize them again! -# udevstart - echo "finished" > /tmp/hwcfg 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