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