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