From cf1994549151f670c7b1ae25c06f805fc9cfecd3 Mon Sep 17 00:00:00 2001 From: Tim Yamin Date: Sat, 22 Jan 2005 20:24:24 +0000 Subject: [PATCH] Add missing #72253 patch. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@161 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- generic/linuxrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generic/linuxrc b/generic/linuxrc index aada361..f7e5b63 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -444,11 +444,11 @@ then rm -rf /tmp/.initrd/dev || echo '*: Failed to remove the initrd /dev!' elif [ "${USE_UDEV_NORMAL}" -eq '1' ] then - rm /tmp/.initrd/dev/fd || echo '*: Failed to rm the initrd fd!' - rm /tmp/.initrd/dev/stdin || echo '*: Failed to rm the initrd stdin!' - rm /tmp/.initrd/dev/stdout || echo '*: Failed to rm the initrd stdout!' - rm /tmp/.initrd/dev/stderr || echo '*: Failed to rm the initrd stderr!' - rm /tmp/.initrd/dev/core || echo '*: Failed to rm the initrd core!' + [ -e /tmp/.initrd/dev/fd ] && rm /tmp/.initrd/dev/fd + [ -e /tmp/.initrd/dev/stdin ] && rm /tmp/.initrd/dev/stdin + [ -e /tmp/.initrd/dev/stdout ] && rm /tmp/.initrd/dev/stdout + [ -e /tmp/.initrd/dev/stderr ] && rm /tmp/.initrd/dev/stderr + [ -e /tmp/.initrd/dev/core ] && rm /tmp/.initrd/dev/core umount /tmp/.initrd/dev || echo '*: Failed to unmount the initrd /dev!' umount /tmp/.initrd/proc || echo '*: Failed to unmount the initrd /proc!' umount /tmp/.initrd/sys || echo '*: Failed to unmount the initrd /sys!' -- 2.26.2