[prev in list] [next in list] [prev in thread] [next in thread]
List: gobolinux-devel
Subject: [gobolinux-devel] Re: [gobolinux-commits] tools/BuildLiveCD/bin
From: lucasvr () gobolinux ! org (Lucas C ! Villa Real)
Date: 2006-06-11 8:15:25
Message-ID: 2c03f9590606110021h4921a84dkf746f799326c5513 () mail ! gmail ! com
[Download RAW message or body]
On 6/10/06, Andr? Detsch <detsch@gobolinux.org> wrote:
> CVSROOT: /sources/goboscripts
> Module name: tools
> Changes by: Andr? Detsch <detsch> 06/06/11 00:17:02
>
> Modified files:
> BuildLiveCD/bin: BuildRoot
>
> Log message:
> Forcing /lib/modules legacy link creation.
>
> CVSWeb URLs:
> http://cvs.savannah.gnu.org/viewcvs/tools/BuildLiveCD/bin/BuildRoot?cvsroot=goboscripts&r1=1.7&r2=1.8
>
> Patches:
> Index: BuildRoot
> ===================================================================
> RCS file: /sources/goboscripts/tools/BuildLiveCD/bin/BuildRoot,v
> retrieving revision 1.7
> retrieving revision 1.8
> diff -u -b -r1.7 -r1.8
> --- BuildRoot 14 May 2006 23:09:51 -0000 1.7
> +++ BuildRoot 11 Jun 2006 00:17:02 -0000 1.8
> @@ -158,6 +158,8 @@
> ln -nfs /System/Links/Executables $root/bin
> ln -nfs /System/Links/Executables $root/sbin
>
> +ln -nfs /System/Kernel/Modules $root/System/Links/Libraries/modules
ln -nfs here might break any existing modules symlink/dir. Maybe it's
better to check for its existance before doing that? Something like
this:
if [ -h $root/System/Links/Libraries/modules ]
then
orig=`readlink -f $root/System/Links/Libraries/modules`
rm -f $root/System/Links/Libraries/modules
mkdir $root/System/Links/Libraries/modules
ln -s $orig/* $root/System/Links/Libraries/modules/
ln -s /System/Kernel/Modules/* $root/System/Links/Libraries/modules/
elif [ -d $root/System/Links/Libraries/modules ]
then
ln -s /System/Kernel/Modules/* $root/System/Links/Libraries/modules/
else
# modules doesn't exist
ln -s /System/Kernel/Modules $root/System/Links/Libraries/modules
fi
--
Lucas
powered by /dev/dsp
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic