Noah Friedman <friedman aaat splode dawt com> maintains a shell script that is basically GNU autoconf's hosttype detection logic, standalone. It doesn't need root, but in some obscure situations may require a C compiler.
It is certainly thermonuclear overkill for your situation, but will offer plenty of hints at technique if you really do feel the need to trim it down. ftp://ftp.splode.com/pub/users/friedman/inits/init-7.4.tar.gz contains a copy in init-7.4/bin/hosttype . _______________________________________________ Discuss mailing list Discuss@blu.org http://lists.blu.org/mailman/listinfo/discuss