[6370fa6] | 1 | <sect1 id="ch07-symperm">
|
---|
| 2 | <title>Setting up symlinks and permissions</title>
|
---|
| 3 |
|
---|
| 4 | <para>
|
---|
[53b5ccf] | 5 | These files get the proper permissions and the necessary symlinks are created
|
---|
[2a83bfa] | 6 | by running the following commands. If you didn't create the loadkeys
|
---|
| 7 | and setclock scripts, make sure not to type them in the commands below.
|
---|
| 8 | </para>
|
---|
| 9 |
|
---|
| 10 | <para>
|
---|
| 11 | A note of caution: all the symlinks (that start with an S or K) have to
|
---|
| 12 | be of the form Sxxxname where xxx are three digits donating the order in
|
---|
| 13 | which the script is executed (the lower the number the sooner it's
|
---|
| 14 | executed). If you feel a need to use less than three digits, make sure
|
---|
| 15 | you pad with extra zero's at the beginning. This means, don't use
|
---|
| 16 | S20mydaemon, but S020mydaemon. And don't use K2otherdaemon, but
|
---|
| 17 | K002otherdaemon.
|
---|
| 18 | </para>
|
---|
| 19 |
|
---|
| 20 | <para>
|
---|
| 21 | Revised rc and rcS scripts are on their way, but we had no time to
|
---|
| 22 | properly test them for this release. They will appear in CVS shortly
|
---|
| 23 | after this version of the book has been released.
|
---|
[6370fa6] | 24 | </para>
|
---|
| 25 |
|
---|
| 26 | <blockquote><literallayout>
|
---|
| 27 | <userinput>cd /etc/init.d &&</userinput>
|
---|
| 28 | <userinput>chmod 754 rc rcS functions checkfs halt loadkeys mountfs
|
---|
| 29 | reboot &&</userinput>
|
---|
| 30 | <userinput>chmod 754 sendsignals setclock sysklogd template
|
---|
| 31 | &&</userinput>
|
---|
| 32 | <userinput>cd ../rc0.d &&</userinput>
|
---|
| 33 | <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
---|
| 34 | <userinput>ln -s ../init.d/sendsignals S800sendsignals &&
|
---|
| 35 | </userinput>
|
---|
| 36 | <userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>
|
---|
| 37 | <userinput>ln -s ../init.d/halt S999halt &&</userinput>
|
---|
| 38 | <userinput>cd ../rc6.d &&</userinput>
|
---|
| 39 | <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
---|
| 40 | <userinput>ln -s ../init.d/sendsignals S800sendsignals &&
|
---|
| 41 | </userinput>
|
---|
| 42 | <userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>
|
---|
| 43 | <userinput>ln -s ../init.d/reboot S999reboot &&</userinput>
|
---|
| 44 | <userinput>cd ../rcS.d &&</userinput>
|
---|
| 45 | <userinput>ln -s ../init.d/checkfs S200checkfs &&</userinput>
|
---|
| 46 | <userinput>ln -s ../init.d/mountfs S300mountfs &&</userinput>
|
---|
| 47 | <userinput>ln -s ../init.d/setclock S400setclock &&</userinput>
|
---|
| 48 | <userinput>ln -s ../init.d/loadkeys S500loadkeys &&</userinput>
|
---|
| 49 | <userinput>cd ../rc1.d &&</userinput>
|
---|
| 50 | <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
---|
| 51 | <userinput>cd ../rc2.d &&</userinput>
|
---|
| 52 | <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
---|
| 53 | <userinput>cd ../rc3.d &&</userinput>
|
---|
| 54 | <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
---|
| 55 | <userinput>cd ../rc4.d &&</userinput>
|
---|
| 56 | <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
---|
| 57 | <userinput>cd ../rc5.d &&</userinput>
|
---|
| 58 | <userinput>ln -s ../init.d/sysklogd S100sysklogd</userinput>
|
---|
| 59 | </literallayout></blockquote>
|
---|
| 60 |
|
---|
| 61 | </sect1>
|
---|
| 62 |
|
---|