From 200f49c81281117d207e8400bd46b289134b650a Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Fri, 22 Apr 2005 18:12:31 +0000 Subject: [PATCH] Added support for reading /mnt/cdrom/cdupdate.sh if its executable on the livecd git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@191 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- generic/linuxrc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/generic/linuxrc b/generic/linuxrc index 8d5976e..85c61ad 100644 --- a/generic/linuxrc +++ b/generic/linuxrc @@ -486,6 +486,16 @@ else mkdir -p /newroot/tmp/.initrd fi +if [ -x /newroot/mnt/cdrom/cdupdate.sh ] +then + /newroot/mnt/cdrom/cdupdate.sh + if [ "$?" != '0' ] + then + echo "FAILED TO EXECUTE cdupdate.sh" + /bin/ash + fi +fi + if [ "$0" = '/linuxrc' ] then [ ! -e /newroot/dev/console ] && mknod /newroot/dev/console c 5 1 -- 2.26.2