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