[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 |
|
---|
[6370fa6] | 20 | <blockquote><literallayout>
|
---|
| 21 | <userinput>cd /etc/init.d &&</userinput>
|
---|
| 22 | <userinput>chmod 754 rc rcS functions checkfs halt loadkeys mountfs
|
---|
| 23 | reboot &&</userinput>
|
---|
| 24 | <userinput>chmod 754 sendsignals setclock sysklogd template
|
---|
| 25 | &&</userinput>
|
---|
[e0f737f] | 26 | <userinput>chmod 754 localnet ethnet &&</userinput>
|
---|
[6370fa6] | 27 | <userinput>cd ../rc0.d &&</userinput>
|
---|
[e0f737f] | 28 | <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
---|
[6370fa6] | 29 | <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
---|
| 30 | <userinput>ln -s ../init.d/sendsignals S800sendsignals &&
|
---|
| 31 | </userinput>
|
---|
| 32 | <userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>
|
---|
| 33 | <userinput>ln -s ../init.d/halt S999halt &&</userinput>
|
---|
| 34 | <userinput>cd ../rc6.d &&</userinput>
|
---|
[e0f737f] | 35 | <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
---|
[6370fa6] | 36 | <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
---|
| 37 | <userinput>ln -s ../init.d/sendsignals S800sendsignals &&
|
---|
| 38 | </userinput>
|
---|
| 39 | <userinput>ln -s ../init.d/mountfs S900mountfs &&</userinput>
|
---|
| 40 | <userinput>ln -s ../init.d/reboot S999reboot &&</userinput>
|
---|
| 41 | <userinput>cd ../rcS.d &&</userinput>
|
---|
[e0f737f] | 42 | <userinput>ln -s ../init.d/localnet S100localnet &&</userinput>
|
---|
[6370fa6] | 43 | <userinput>ln -s ../init.d/checkfs S200checkfs &&</userinput>
|
---|
| 44 | <userinput>ln -s ../init.d/mountfs S300mountfs &&</userinput>
|
---|
| 45 | <userinput>ln -s ../init.d/setclock S400setclock &&</userinput>
|
---|
| 46 | <userinput>ln -s ../init.d/loadkeys S500loadkeys &&</userinput>
|
---|
| 47 | <userinput>cd ../rc1.d &&</userinput>
|
---|
[e0f737f] | 48 | <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
---|
[6370fa6] | 49 | <userinput>ln -s ../init.d/sysklogd K900sysklogd &&</userinput>
|
---|
| 50 | <userinput>cd ../rc2.d &&</userinput>
|
---|
| 51 | <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
---|
[e0f737f] | 52 | <userinput>ln -s ../init.d/ethnet K800ethnet &&</userinput>
|
---|
[6370fa6] | 53 | <userinput>cd ../rc3.d &&</userinput>
|
---|
| 54 | <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
---|
[e0f737f] | 55 | <userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>
|
---|
[6370fa6] | 56 | <userinput>cd ../rc4.d &&</userinput>
|
---|
| 57 | <userinput>ln -s ../init.d/sysklogd S100sysklogd &&</userinput>
|
---|
[e0f737f] | 58 | <userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>
|
---|
[6370fa6] | 59 | <userinput>cd ../rc5.d &&</userinput>
|
---|
| 60 | <userinput>ln -s ../init.d/sysklogd S100sysklogd</userinput>
|
---|
[e0f737f] | 61 | <userinput>ln -s ../init.d/ethnet S200ethnet &&</userinput>
|
---|
[6370fa6] | 62 | </literallayout></blockquote>
|
---|
| 63 |
|
---|
| 64 | </sect1>
|
---|
| 65 |
|
---|