⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 symperm.html

📁 lfs3.1 从源代码构建linux。html版本。
💻 HTML
字号:
<HTML><HEAD><TITLE>Setting up symlinks and permissions</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Creating system boot scripts"HREF="../chapter07/chapter07.html"><LINKREL="PREVIOUS"TITLE="Creating the ethnet script"HREF="../chapter07/ethnet.html"><LINKREL="NEXT"TITLE="Making the LFS system bootable"HREF="../chapter08/chapter08.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../chapter07/ethnet.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 7. Creating system boot scripts</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter08/chapter08.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch07-symperm">7.20. Setting up symlinks and permissions</A></H1><P>These files get the proper permissions and the necessary symlinks are created by running the following commands. If you didn't create the loadkeysand/or setclock scripts, make sure not to type them in the commands below.</P><P>A note of caution: all the symlinks (that start with an S or K) have tobe of the form Sxxxname where xxx are three digits denoting the order inwhich the script is executed (the lower the number the sooner it'sexecuted). If you feel a need to use less than three digits, make sureyou pad with extra zero's at the beginning. This means, don't useS20mydaemon, but S020mydaemon. And don't use K2otherdaemon, butK002otherdaemon.</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>cd /etc/init.d &#38;&#38;</B></TT><TTCLASS="userinput"><B>chmod 754 rc rcS functions checkfs halt loadkeys mountfs reboot &#38;&#38;</B></TT><TTCLASS="userinput"><B>chmod 754 sendsignals setclock sysklogd template &#38;&#38;</B></TT><TTCLASS="userinput"><B>chmod 754 localnet ethnet &#38;&#38;</B></TT><TTCLASS="userinput"><B>cd ../rc0.d &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/ethnet K800ethnet &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/sysklogd K900sysklogd &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/sendsignals S800sendsignals &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/mountfs S900mountfs &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/halt S999halt &#38;&#38;</B></TT><TTCLASS="userinput"><B>cd ../rc6.d &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/ethnet K800ethnet &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/sysklogd K900sysklogd &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/sendsignals S800sendsignals &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/mountfs S900mountfs &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/reboot S999reboot &#38;&#38;</B></TT><TTCLASS="userinput"><B>cd ../rcS.d &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/localnet S100localnet &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/checkfs S200checkfs &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/mountfs S300mountfs &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/setclock S400setclock &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/loadkeys S500loadkeys &#38;&#38;</B></TT><TTCLASS="userinput"><B>cd ../rc1.d &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/ethnet K800ethnet &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/sysklogd K900sysklogd &#38;&#38;</B></TT><TTCLASS="userinput"><B>cd ../rc2.d &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/sysklogd S100sysklogd &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/ethnet K800ethnet &#38;&#38;</B></TT><TTCLASS="userinput"><B>cd ../rc3.d &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/sysklogd S100sysklogd &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/ethnet S200ethnet &#38;&#38;</B></TT><TTCLASS="userinput"><B>cd ../rc4.d &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/sysklogd S100sysklogd &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/ethnet S200ethnet &#38;&#38;</B></TT><TTCLASS="userinput"><B>cd ../rc5.d &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/sysklogd S100sysklogd &#38;&#38;</B></TT><TTCLASS="userinput"><B>ln -sf ../init.d/ethnet S200ethnet</B></TT></PRE></FONT></TD></TR></TABLE></P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../chapter07/ethnet.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter08/chapter08.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Creating the ethnet script</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter07/chapter07.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Making the LFS system bootable</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -