source: chapter07/symperm.xml@ f8217e15

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk v3_0 v3_1 v3_2 v3_3 v4_0 v4_1 v5_0 v5_1 v5_1_1 xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since f8217e15 was fa914e5, checked in by Gerard Beekmans <gerard@…>, 23 years ago

text updates

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1114 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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