init and init scripts

2006-08-30 Thread dave frost
ive just been experimenting with trying to understand how init scripts work. .. so i wrote some from scratch. Now i thought that the scripts would have to work out what the previous runlevel was (using an exported shell variable) and stop the previous runlevel, but this doesnt seem to be

RE: init and init scripts

2006-08-30 Thread Brandon Peirce
dave frost wrote: Now i thought that the scripts would have to work out what the previous runlevel was (using an exported shell variable) and stop the previous runlevel, but this doesnt seem to be working. It struck me that the shell the init script runs in when entering a runlevel wont be

RE: package users: re-adjusting the toolchain

2006-08-30 Thread Brandon Peirce
Angel Tsankov wrote: As what user should I re-adjust the toolchain in Ch. 6 of LFS 6.1.1? First, backup the /tools linker, and replace it with... The linker (ld) is part of the binutils package, so the first block of commands (3 mv and 1 ln) should be done as your binutils package user. Next,

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Angel Tsankov
As what user should I re-adjust the toolchain in Ch. 6 of LFS 6.1.1? First, backup the /tools linker, and replace it with... The linker (ld) is part of the binutils package, so the first block of commands (3 mv and 1 ln) should be done as your binutils package user. Next, amend the GCC specs

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Brandon Peirce
Angel Tsankov wrote: As what user should I re-adjust the toolchain in Ch. 6 of LFS 6.1.1? First, backup the /tools linker, and replace it with... The linker (ld) is part of the binutils package, so the first block of commands (3 mv and 1 ln) should be done as your binutils package user.

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Angel Tsankov
As what user should I re-adjust the toolchain in Ch. 6 of LFS 6.1.1? First, backup the /tools linker, and replace it with... The linker (ld) is part of the binutils package, so the first block of commands (3 mv and 1 ln) should be done as your binutils package user. For LFS 6.1.1 the

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Chris Staub
Angel Tsankov wrote: As what user should I re-adjust the toolchain in Ch. 6 of LFS 6.1.1? If you need to ask this, you shouldn't be using package users. Besides, the whole toolchain readjustment only affects stuff in /tools, so it doesn't make any difference what user you use. --

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Chris Staub
Brandon Peirce wrote: Angel Tsankov wrote: For LFS 6.1.1 the instructions says Install the adjusted linker by running the following command from within the binutils-build directory: The make -C ld ... install command is different to the LFS 6.2 commands but is still manipulating (in 6.1.1

Re: cannot execute /bin/bash : No such file or Directory exists

2006-08-30 Thread yogesh prabhu
Thanks for ur reply... As per the earlier mail of Pavlov (PV) the output i got is listed below 1) ls -l /bin/bash /lib/libreadline.so.5.0 /lib/libhistory.so.5.0 -rwxr-xr-x 1 root root 1152240 2006-08-11 04:43 /bin/bash -rwxr-xr-x 1 root root 30852 2006-08-07 05:05

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Brandon Peirce
Chris Staub wrote: The adjusted linker is installed into /tools, so you need to use root. Why root? Of course you can always achieve this with root, but that's kind of missing the point of package users technique, (and also violating principle of least privelege). I concede that the

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Chris Staub
Brandon Peirce wrote: Why root? Of course you can always achieve this with root, but that's kind of missing the point of package users technique, (and also violating principle of least privelege). I concede that the motivation for why you would use the package users technique in the first

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Chris Staub
Chris Staub wrote: You're not *supposed* to be using package users in chapter 5. It's only in chapter 6. The only package installed using package users so far should be glibc. From the hint: Build Chapter 5 exactly as explained by the LFS book. There is only one little change you have to

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Angel Tsankov
You're not *supposed* to be using package users in chapter 5. It's only in chapter 6. The only package installed using package users so far should be glibc. Why glibc only?! What about Linux Libc headers and Man pages - the hint recommends to install them using PU? --

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Chris Staub
Angel Tsankov wrote: You're not *supposed* to be using package users in chapter 5. It's only in chapter 6. The only package installed using package users so far should be glibc. Why glibc only?! What about Linux Libc headers and Man pages - the hint recommends to install them using PU?

Re: cannot execute /bin/bash : No such file or Directory exists

2006-08-30 Thread Vladimir A. Pavlov
On Wednesday 30 August 2006 21:43, yogesh prabhu wrote: Thanks for ur reply... As per the earlier mail of Pavlov (PV) the output i got is listed below ... Seems OK for me. I don't see a problem here. Just a note, I asked you to run ls -ld / but you run ls -l /. You gave me the contents

Re: package users: re-adjusting the toolchain

2006-08-30 Thread Brandon Peirce
Chris Staub wrote: Chris Staub wrote: You're not *supposed* to be using package users in chapter 5. It's only in chapter 6. The only package installed using package users so far should be glibc. From the hint: Build Chapter 5 exactly as explained by the LFS book. There is only one little