This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to echo debug messages to console for init scripts?

I am using DM365, Montavista 2.6.18 and the target file system from Montavista.

I created a simple init script under /etc/init.d/banner and symbolic link to /etc/rc.d/rcS.d/S02banner:

#!/bin/sh

echo "Banner..."
log_status_msg "Please wait: booting..."

But during bootup I dont see any messages on console. If I modified it to echo "Banner..." >/var/log/test.log, the message is logged in test.log. But it just does not printed on console.

In /etc/default/rcS, VERBOSE is already ON

I also tried to use echo "Banner..." 2>&1 but it does not print anything on console.

Any advise please? Thanks.