2001-01-24 00:31:17 +00:00
|
|
|
<sect1 id="ch07-symperm">
|
|
|
|
<title>Setting up symlinks and permissions</title>
|
2001-09-26 01:35:10 +01:00
|
|
|
<?dbhtml filename="symperm.html" dir="chapter07"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>These files get the proper permissions and the necessary symlinks
|
|
|
|
are created by running the following commands. If you didn't create the loadkeys
|
2001-08-29 20:50:53 +01:00
|
|
|
and/or setclock scripts, make sure not to type them in the commands
|
|
|
|
below.</para>
|
2001-05-12 05:09:13 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>A note of caution: all the symlinks (that start with an S or K) have to
|
2001-08-24 16:56:48 +01:00
|
|
|
be of the form Sxxxname where xxx are three digits denoting the order in
|
2001-05-12 05:09:13 +01:00
|
|
|
which the script is executed (the lower the number the sooner it's
|
|
|
|
executed). If you feel a need to use less than three digits, make sure
|
|
|
|
you pad with extra zero's at the beginning. This means, don't use
|
|
|
|
S20mydaemon, but S020mydaemon. And don't use K2otherdaemon, but
|
2001-07-22 20:45:10 +01:00
|
|
|
K002otherdaemon.</para>
|
2001-05-12 05:09:13 +01:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para><screen><userinput>cd /etc/init.d &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>chmod 754 rc rcS functions checkfs halt loadkeys mountfs reboot &&</userinput>
|
|
|
|
<userinput>chmod 754 sendsignals setclock sysklogd template &&</userinput>
|
|
|
|
<userinput>chmod 754 localnet ethnet &&</userinput>
|
|
|
|
<userinput>cd ../rc0.d &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../init.d/ethnet K800ethnet &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/sysklogd K900sysklogd &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/sendsignals S800sendsignals &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/mountfs S900mountfs &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/halt S999halt &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>cd ../rc6.d &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../init.d/ethnet K800ethnet &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/sysklogd K900sysklogd &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/sendsignals S800sendsignals &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/mountfs S900mountfs &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/reboot S999reboot &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>cd ../rcS.d &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../init.d/localnet S100localnet &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/checkfs S200checkfs &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/mountfs S300mountfs &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/setclock S400setclock &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/loadkeys S500loadkeys &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>cd ../rc1.d &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../init.d/ethnet K800ethnet &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/sysklogd K900sysklogd &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>cd ../rc2.d &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../init.d/sysklogd S100sysklogd &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/ethnet K800ethnet &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>cd ../rc3.d &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../init.d/sysklogd S100sysklogd &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/ethnet S200ethnet &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>cd ../rc4.d &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../init.d/sysklogd S100sysklogd &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/ethnet S200ethnet &&</userinput>
|
2001-07-10 16:06:31 +01:00
|
|
|
<userinput>cd ../rc5.d &&</userinput>
|
2001-08-23 23:38:49 +01:00
|
|
|
<userinput>ln -sf ../init.d/sysklogd S100sysklogd &&</userinput>
|
|
|
|
<userinput>ln -sf ../init.d/ethnet S200ethnet</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|