From: Tim Yamin Date: Sat, 22 Jan 2005 20:24:24 +0000 (+0000) Subject: Add missing #72253 patch. X-Git-Tag: v3.4.10.902~591 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cf1994549151f670c7b1ae25c06f805fc9cfecd3;p=genkernel.git Add missing #72253 patch. git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@161 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- 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!'