10 Jul
2003
10 Jul
'03
3:39 a.m.
On Thu, 2003-07-10 at 03:26, Matthias Andree wrote:
Timo Sirainen <tss@iki.fi> writes:
Oh. I guess "test -c /dev/urandom" isn't the proper way to check it then. It's not a character device with you? What OS? Maybe test -e would work.
test -e isn't implemented in Solaris' /bin/sh, so it's not an option unless you're willing to add special treatment to figure if you need to launch /usr/xpg4/bin/sh or something.
I knew there was something wrong with it :) Well, this should work then:
if test -c /dev/urandom -o -s /dev/urandom; then