Added wrapping around the udev sed for those crazy 2.4-users.
authorChris Gianelloni <wolf31o2@gentoo.org>
Tue, 21 Feb 2006 19:50:22 +0000 (19:50 +0000)
committerChris Gianelloni <wolf31o2@gentoo.org>
Tue, 21 Feb 2006 19:50:22 +0000 (19:50 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@1095 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
targets/support/livecdfs-update.sh

index 44747bbb27c3f68711bf70eddc54e0f02c87596b..2e75a40c65d5a26b45b75b0f44ef6a3728287fd9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.580 2006/02/17 14:50:15 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.581 2006/02/21 19:50:22 wolf31o2 Exp $
+
+  21 Feb 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+  targets/support/livecdfs-update.sh:
+  Added wrapping around the udev sed for those crazy 2.4-users.
 
   17 Feb 2006; Chris Gianelloni <wolf31o2@gentoo.org> catalyst,
   targets/support/livecdfs-update.sh:
index 8198e99b22517e988e6086a99d7f9bf851476455..b8817a6cf1c3432830370754f910cc1bb2e8ce8f 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.38 2006/02/17 14:50:15 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/targets/support/livecdfs-update.sh,v 1.39 2006/02/21 19:50:22 wolf31o2 Exp $
 
 . /tmp/chroot-functions.sh
 
@@ -309,4 +309,7 @@ case ${clst_livecd_type} in
                ;;
 esac
 
-sed -i "s:\t\[\[ -x /sbin/evms_activate:\t\[\[ -x \${CDBOOT} \]\] \&\& \[\[ -x /sbin/evms_activate:" /lib/rcscripts/addons/udev-start.sh
+if [-e /lib/rcscripts/addons/udev-start.sh ]
+then
+       sed -i "s:\t\[\[ -x /sbin/evms_activate:\t\[\[ -x \${CDBOOT} \]\] \&\& \[\[ -x /sbin/evms_activate:" /lib/rcscripts/addons/udev-start.sh
+fi