]> Zhao Yanbai Git Server - minix.git/commitdiff
Fixed network availability check
authorBen Gras <ben@minix3.org>
Sun, 26 Mar 2006 19:30:33 +0000 (19:30 +0000)
committerBen Gras <ben@minix3.org>
Sun, 26 Mar 2006 19:30:33 +0000 (19:30 +0000)
commands/scripts/packman.sh

index 5b58d7bee457c972e5b08596aaab198334ea2586..544463890119525d979b3dfa86908f1afc0c496c 100644 (file)
@@ -111,7 +111,7 @@ rm -f $TMPF
 rm -f $TMPDIR/.*       # Remove any remaining .postinstall script or .list*
 
 netpackages=""
-if </dev/tcp
+if ( : </dev/tcp ) 2>/dev/null
 then   if [ -f $LISTFILE ]
        then    echo -n "Update package list from network? (y/N) "
                read y