From 80aed16bb67ef6de65ccd4c2eecee9f2710f5cc1 Mon Sep 17 00:00:00 2001
From: =?utf8?q?S=2E=C3=87a=C4=9Flar=20Onur?= <caglar@verivue.com>
Date: Mon, 21 Feb 2011 16:28:52 -0500
Subject: [PATCH] fix rtc symlink

---
 mkinitrd-5.1.19.6-rtc0.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mkinitrd-5.1.19.6-rtc0.patch b/mkinitrd-5.1.19.6-rtc0.patch
index 4e1d84f..f422dbc 100644
--- a/mkinitrd-5.1.19.6-rtc0.patch
+++ b/mkinitrd-5.1.19.6-rtc0.patch
@@ -7,7 +7,7 @@ diff -ur mkinitrd-5.1.19.6.orig/mkinitrd mkinitrd-5.1.19.6/mkinitrd
  mknod $MNTIMAGE/dev/ptmx c 5 2
 -mknod $MNTIMAGE/dev/rtc c 10 135
 +mknod $MNTIMAGE/dev/rtc0 c 254 0
-+ln -s $MNTIMAGE/dev/rtc0 /dev/rtc
++pushd $MNTIMAGE/dev/ > /dev/null 2>&1; ln -s rtc0 rtc; popd > /dev/null 2>&1
  if [ "$(uname -m)" == "ia64" ]; then
      mknod $MNTIMAGE/dev/efirtc c 10 136
  fi
-- 
2.47.0