summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorEric Andersen2003-06-27 05:46:29 +0000
committerEric Andersen2003-06-27 05:46:29 +0000
commit0b0d393347a2f4444a49afa32491068ac92cbfa3 (patch)
treebb03ba5e82662669389831af0ea3ea8c1565ff53 /init
parent4a2dcd904c4326ee7fd6e349d0e04e500756f977 (diff)
downloadbusybox-0b0d393347a2f4444a49afa32491068ac92cbfa3.zip
busybox-0b0d393347a2f4444a49afa32491068ac92cbfa3.tar.gz
Remove bdflush garbage, which is only relevant to unsupported
kernel versions
Diffstat (limited to 'init')
-rw-r--r--init/init.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/init/init.c b/init/init.c
index 8adff1c..d51d291 100644
--- a/init/init.c
+++ b/init/init.c
@@ -102,12 +102,6 @@ struct serial_struct {
#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 @@ static void shutdown_system(void)
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)