I apologize in advance if this isn't what you were talking about, or if
this is too off topic or newbie-ish for this list.
Mark Knecht wrote:
What would your suggestion be for pair of rm and ln commands?
Under /usr/src/ you should have one directory called something like
2.6.13-gentoo-r3 and another called 2.6.13-gentoo-r3-ht. You would then
create a symlink to 'linux' from whichever one is currently running. To
change it do 'rm linux' and 'ln -s 2.6.13-gentoo-r3 linux' (as appropriate.)
For example, my /usr/src looks like this:
[EMAIL PROTECTED]:/usr/src 2>ls -l
total 12
lrwxr-xr-x 1 root root 23 Aug 15 19:59 linux -> linux-2.6.11-gentoo-r9/
drwxr-xr-x 19 root root 4096 Sep 10 13:00 linux-2.6.11-gentoo-r9
drwxr-xr-x 18 root root 4096 Sep 7 18:41 linux-2.6.12-gentoo-r10
drwxr-xr-x 18 root root 4096 Oct 6 10:14 linux-2.6.13-gentoo-r3
I have 3 different source trees installed, but the one I'm currently
running (2.6.11-gentoo-r9) is the one that is linked to 'linux'. That
way anything that looks in /usr/src/linux for the running kernel sources
will find it. If I want to switch to 2.6.13-gentoo-r3 I would do this:
[EMAIL PROTECTED]:/usr/src 1>rm linux
[EMAIL PROTECTED]:/usr/src 2>ln -s linux-2.6.13-gentoo-r3/ linux
Now the directory looks like this:
[EMAIL PROTECTED]:/usr/src 3>ls -l
total 12
lrwxrwxrwx 1 root root 23 Oct 10 11:10 linux -> linux-2.6.13-gentoo-r3/
drwxr-xr-x 19 root root 4096 Sep 10 13:00 linux-2.6.11-gentoo-r9
drwxr-xr-x 18 root root 4096 Sep 7 18:41 linux-2.6.12-gentoo-r10
drwxr-xr-x 18 root root 4096 Oct 6 10:14 linux-2.6.13-gentoo-r3
Daniel
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel