[BusyBox-cvs] busybox/init init.c,1.183,1.184

Erik Andersen andersen at busybox.net
Fri Jun 27 05:46:33 UTC 2003


Update of /var/cvs/busybox/init
In directory winder:/tmp/cvs-serv23216/init

Modified Files:
	init.c 
Log Message:
Remove bdflush garbage, which is only relevant to unsupported
kernel versions


Index: init.c
===================================================================
RCS file: /var/cvs/busybox/init/init.c,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -d -r1.183 -r1.184
--- init.c	24 Apr 2003 11:41:28 -0000	1.183
+++ init.c	27 Jun 2003 05:46:29 -0000	1.184
@@ -102,12 +102,6 @@
 
 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
 
-#if __GNU_LIBRARY__ > 5
-#include <sys/kdaemon.h>
-#else
-extern int bdflush(int func, long int data);
-#endif
-
 #define SHELL        "/bin/sh"	/* Default shell */
 #define LOGIN_SHELL  "-" SHELL	/* Default login shell */
 #define INITTAB      "/etc/inittab"	/* inittab file location */
@@ -716,11 +710,6 @@
 	sleep(1);
 
 	sync();
-	if (kernelVersion > 0 && kernelVersion <= KERNEL_VERSION(2, 2, 11)) {
-		/* bdflush, kupdate not needed for kernels >2.2.11 */
-		bdflush(1, 0);
-		sync();
-	}
 }
 
 static void exec_signal(int sig)



More information about the busybox-cvs mailing list