From 20db58e37e32316fa308d5f15d18248aca8ae43a Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 7 Jun 2004 10:41:48 +0000 Subject: nasty kernel now gives us weird PIDs, so we can't rely on this to detect if we are running on a live box or not. So set testing to 0 --- mdk-stage1/init.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'mdk-stage1/init.c') diff --git a/mdk-stage1/init.c b/mdk-stage1/init.c index 8d9035b33..58dc64bd8 100644 --- a/mdk-stage1/init.c +++ b/mdk-stage1/init.c @@ -56,7 +56,7 @@ char * env[] = { * */ -int testing; +int testing = 0; int klog_pid; @@ -445,9 +445,6 @@ int main(int argc, char **argv) return 0; } - /* getpid() != 1 should work, by linuxrc tends to get a larger pid */ - testing = (getpid() > 50); - if (!testing) { /* turn off screen blanking */ printf("\033[9;0]"); -- cgit v1.2.1