Mount JFFS2 Image
Saturday, October 25, 2008
Example of how to mount a JFFS2 image using mtdblock.
Never argue with a fool, people might not know the difference.
Dialog Progress Bar Through Pipe
Sunday, April 12, 2009 by digitalpeer
The following example creates a named pipe, assigns a file descriptor to it, sub-shells the dialog guage, and communicates progress to it through the pipe.
This is close, but not quite there. The dialog never exits. Maybe somebody else can figure it out.
#!/bin/sh
rm /tmp/fifo
mkfifo /tmp/fifo
exec 5<>/tmp/fifo
( cat <&5 | dialog --guage "hello world" 10 30 ) &
echo 000 >&5
sleep 0.5
echo 010 >&5
sleep 0.5
echo 020 >&5
sleep 0.5
echo 030 >&5
sleep 0.5
echo 050 >&5
sleep 0.5
echo 080 >&5
sleep 0.5
echo 100 >&5
5<&-
exit 0