Hi,
I have been trying to capture console logs from the init script.
When the ramfs is mounted, i check if usb is connected , if conncted, i mount it and redirected the console logs like so:
Code:
cat & /dev/ttyS1 >> /mnt/logs.txt
I'm getting
Code:
/bin/sh : /dev/ttyS1 :permission denied
I tried changing the permission to 777, but to no avail.
I also tried sudo, and found out that our ramfs does not support this command.
The console logs are still being printed on the monitor.
Please suggest a solution.
Thanks.