2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of Sh-utils</title>
|
|
|
|
|
2002-09-13 00:16:37 +01:00
|
|
|
<para>This package requires its hostname-patch to be applied before you
|
2002-12-17 13:26:15 +00:00
|
|
|
can install it.</para>
|
2002-09-13 00:16:37 +01:00
|
|
|
|
2002-05-26 22:25:09 +01:00
|
|
|
<para>Install Sh-utils by running the following commands:</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-09-13 00:16:37 +01:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../sh-utils-&sh-utils-hostname-patch-version;.patch &&
|
|
|
|
./configure --prefix=/usr &&
|
2001-10-27 23:21:44 +01:00
|
|
|
make &&
|
|
|
|
make install &&
|
2002-09-13 00:16:37 +01:00
|
|
|
mv /usr/bin/{basename,date,echo,false,pwd} /bin &&
|
|
|
|
mv /usr/bin/{sleep,stty,su,test,true,uname} /bin &&
|
2002-05-02 21:15:02 +01:00
|
|
|
mv /usr/bin/chroot /usr/sbin</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2001-05-04 00:44:00 +01:00
|
|
|
<sect2>
|
|
|
|
<title>FHS compliance notes</title>
|
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>There is a command installed in this package which is named test. It is
|
|
|
|
often used in shell scripts to evaluate conditions, but is more often
|
|
|
|
encountered in the form of <command>[ condition ]</command>. These brackets
|
|
|
|
are built into the bash interpreter, but the FHS dictates that there should be a
|
2002-05-21 17:50:46 +01:00
|
|
|
<filename>[</filename> binary. Create it by running:</para>
|
2001-07-22 20:45:10 +01:00
|
|
|
|
2002-08-18 18:26:58 +01:00
|
|
|
<para><screen><userinput>ln -s test /bin/[</userinput></screen></para>
|
2001-05-04 00:44:00 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|