From 38676609c1bde7f0b1d2b4c741cb298cfcaa5f2f Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Mon, 3 Apr 2006 18:47:28 +0000 Subject: [PATCH] Don't redirect stderr to /dev/null --- drivers/memory/ramdisk/Makefile | 4 ++-- drivers/memory/ramdisk/proto.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/memory/ramdisk/Makefile b/drivers/memory/ramdisk/Makefile index eb47df5d3..90179fd04 100644 --- a/drivers/memory/ramdisk/Makefile +++ b/drivers/memory/ramdisk/Makefile @@ -22,7 +22,7 @@ bintoc: bintoc.c $(CC) -o $@ bintoc.c image: proto.gen mtab rc $(PROGRAMS) - mkfs -B 2048 image proto.gen 2>/dev/null || { rm -f image; false; } + mkfs -B 2048 image proto.gen || { rm -f image; false; } at_wini: ../../at_wini/at_wini install -s ../../$@/$@ $@ @@ -94,7 +94,7 @@ depend: /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend proto.gen: $(MAKEDEV) proto.sh proto - sh -e proto.sh proto.gen + sh -e proto.sh >proto.gen # Include generated dependencies. include .depend diff --git a/drivers/memory/ramdisk/proto.sh b/drivers/memory/ramdisk/proto.sh index bbf879eb3..c3b837740 100644 --- a/drivers/memory/ramdisk/proto.sh +++ b/drivers/memory/ramdisk/proto.sh @@ -1,7 +1,8 @@ #!/bin/sh +rm -rf t mkdir t 2>/dev/null || true cd t -MAKEDEV std 2>/dev/null +MAKEDEV std rm fd1* fd0p* tcp* eth* ip* udp* tty[pq]* pty* sed -n '1,/@DEV/p' <../proto | grep -v @DEV@ ls -aln | grep '^[bc]' | \ -- 2.44.0