Hi,

This patch fix an error while using the DELAY option in mkinitrd.conf
. The error i was getting was ( I just waited for 5 seconds )

Waiting for 5 seconds, press ENTER to obtain a shell.
kill: 1: No such proces




-aneesh
--- init.old    2005-02-10 13:49:44.000000000 +0530
+++ init        2005-02-10 13:49:56.000000000 +0530
@@ -382,11 +382,11 @@
        timeout=
        { sleep $DELAY; kill -USR1 $$ 2> /dev/null; }&
        pid=$!
        read line
        trap "" USR1
-       kill $pid
+       [ $timeout ] || kill $pid
        wait
 
        [ $timeout ] || exec sh
 fi
 

Reply via email to