source: chapter07/symperm.xml@ 8cf9009

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_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 8cf9009 was e12115e, checked in by Gerard Beekmans <gerard@…>, 23 years ago

added <?dbhtml> tag for output redirection into subdir

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

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