Ticket #318: 318-proposal-2.patch
File 318-proposal-2.patch, 7.0 KB (added by , 21 years ago) |
---|
-
appendices/symlinks/rc0.xml
diff -Naur BOOK-ORIG/appendices/symlinks/rc0.xml BOOK-DJL/appendices/symlinks/rc0.xml
old new 105 105 </row> 106 106 107 107 <row> 108 <entry>K47</entry> 109 <entry>netfs</entry> 110 <entry><filename>../init.d/netfs</filename></entry> 111 <entry>Unmount network filesystems: <xref linkend="postlfs-config-netfs"/></entry> 112 </row> 113 114 <row> 108 115 <entry>K48</entry> 109 116 <entry>samba</entry> 110 117 <entry><filename>../init.d/samba</filename></entry> -
appendices/symlinks/rc1.xml
diff -Naur BOOK-ORIG/appendices/symlinks/rc1.xml BOOK-DJL/appendices/symlinks/rc1.xml
old new 77 77 </row> 78 78 79 79 <row> 80 <entry>K47</entry> 81 <entry>netfs</entry> 82 <entry><filename>../init.d/netfs</filename></entry> 83 <entry>Unmount network filesystems: <xref linkend="postlfs-config-netfs"/></entry> 84 </row> 85 86 <row> 80 87 <entry>K48</entry> 81 88 <entry>samba</entry> 82 89 <entry><filename>../init.d/samba</filename></entry> -
appendices/symlinks/rc2.xml
diff -Naur BOOK-ORIG/appendices/symlinks/rc2.xml BOOK-DJL/appendices/symlinks/rc2.xml
old new 63 63 </row> 64 64 65 65 <row> 66 <entry>K47</entry> 67 <entry>netfs</entry> 68 <entry><filename>../init.d/netfs</filename></entry> 69 <entry>Unmount network filesystems: <xref linkend="postlfs-config-netfs"/></entry> 70 </row> 71 72 <row> 66 73 <entry>K48</entry> 67 74 <entry>samba</entry> 68 75 <entry><filename>../init.d/samba</filename></entry> -
appendices/symlinks/rc6.xml
diff -Naur BOOK-ORIG/appendices/symlinks/rc6.xml BOOK-DJL/appendices/symlinks/rc6.xml
old new 98 98 </row> 99 99 100 100 <row> 101 <entry>K47</entry> 102 <entry>netfs</entry> 103 <entry><filename>../init.d/netfs</filename></entry> 104 <entry>Unmount network filesystems: <xref linkend="postlfs-config-netfs"/></entry> 105 </row> 106 107 <row> 101 108 <entry>K48</entry> 102 109 <entry>samba</entry> 103 110 <entry><filename>../init.d/samba</filename></entry> -
introduction/welcome/credits.xml
diff -Naur BOOK-ORIG/introduction/welcome/credits.xml BOOK-DJL/introduction/welcome/credits.xml
old new 147 147 and STLport: <emphasis> 148 148 Tushar Teredesai</emphasis></para></listitem> 149 149 150 <listitem><para>RP-PPPoE : <emphasis> DJ Lucas150 <listitem><para>RP-PPPoE and netfs: <emphasis> DJ Lucas 151 151 </emphasis></para></listitem> 152 152 153 153 </itemizedlist> -
postlfs/config/config.xml
diff -Naur BOOK-ORIG/postlfs/config/config.xml BOOK-DJL/postlfs/config/config.xml
old new 26 26 &postlfs-config-manpages; 27 27 &postlfs-config-infopages; 28 28 &postlfs-config-skel; 29 &postlfs-config-netfs; 29 30 30 31 </chapter> 31 32 -
postlfs/config/netfs.xml
diff -Naur BOOK-ORIG/postlfs/config/netfs.xml BOOK-DJL/postlfs/config/netfs.xml
old new 1 <sect1 id="postlfs-config-netfs" xreflabel="netfs"> 2 <?dbhtml filename="netfs.html" dir="postlfs"?> 3 <title>/etc/rc.d/init.d/netfs</title> 4 5 <para>The base LFS system does not take into account all of the possible 6 ways of connecting to networks, and as a result, it dosen't handle 7 unmounting of network filesystems very well. The base configuration of 8 LFS is not a problem for a simple static network. However, as you 9 begin to expand your networking with BLFS, adding into the mix various 10 network clients, connection protocols, tunneling, etc., it can display 11 a few minor problems. <filename> netfs</filename> is a simple script to 12 overcome one of those little problems that may creep up on you as you add 13 to the network on your BLFS system.</para> 14 <para>Use the following commands to create the <filename>netfs</filename> 15 script.</para> 16 17 <screen><userinput>cat > /etc/rc.d/init.d/netfs << "EOF" 18 #!/bin/sh 19 # Begin $rc_base/init.d/netfs 20 21 # Based on sysklogd script from LFS-3.1 and earlier. 22 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org 23 # Netfs script written by DJ Lucas - dj@lucasit.com 24 25 source /etc/sysconfig/rc 26 source $rc_functions 27 28 case "$1" in 29 30 start) 31 echo "Mounting network volumes..." 32 mount -at nfs,sbmfs,coda,ncpfs 33 evaluate_retval 34 ;; 35 36 37 top) 38 NFSMOUNTS=$(awk 'BEGIN { ORS=" "} $3 ~ /nfs/ { print $2 }' \ 39 /etc/mtab) 40 SMBMOUNTS=$(awk 'BEGIN { ORS=" "} $3 ~ /smbfs/ { print $2 }' \ 41 /etc/mtab) 42 CODAMOUNTS=$(awk 'BEGIN { ORS=" "} $3 ~ /coda/ { print $2 }' \ 43 /etc/mtab) 44 NCPMOUNTS=$(awk 'BEGIN { ORS=" "} $3 ~ /ncpfs/ { print $2 }' \ 45 /etc/mtab) 46 47 echo -n "Unmounting network volumes..." 48 49 if [ -z "$NFSMOUNTS$SMBMOUNTS$CODAMOUNTS$NCPMOUNTS" ] 50 then 51 echo "No network volumes mounted!" 52 evaluate_retval 53 else 54 55 echo " " 56 fuser -km $NFSMOUNTS $SMBMOUNTS \ 57 $CODAMOUNTS $NCPMOUNTS >> /dev/null 58 umount $NFSMOUNTS $SMBMOUNTS \ 59 $CODAMOUNTS $NCPMOUNTS >> /dev/null 60 evaluate_retval 61 fi 62 ;; 63 64 *) 65 echo "Usage: $0 {start|stop}" 66 exit 1 67 ;; 68 esac 69 70 # End $rc_base/init.d/netfs 71 EOF 72 chmod 755 /etc/rc.d/init.d/netfs</userinput></screen> 73 74 <para>Create the symlinks using the following commands:</para> 75 <screen><userinput>ln -sf ../init.d/netfs /etc/rc.d/rc0.d/K47netfs && 76 ln -sf ../init.d/netfs /etc/rc.d/rc1.d/K47netfs && 77 ln -sf ../init.d/netfs /etc/rc.d/rc2.d/K47netfs && 78 ln -sf ../init.d/netfs /etc/rc.d/rc6.d/K47netfs </userinput></screen> 79 80 <para>Notice that there are no start symlinks. The start case is 81 added only as a convience for later on in your installation.</para> 82 83 </sect1> 84 -
postlfs/postlfs.ent
diff -Naur BOOK-ORIG/postlfs/postlfs.ent BOOK-DJL/postlfs/postlfs.ent
old new 11 11 <!ENTITY postlfs-config-manpages SYSTEM "config/manpages.xml"> 12 12 <!ENTITY postlfs-config-infopages SYSTEM "config/infopages.xml"> 13 13 <!ENTITY postlfs-config-skel SYSTEM "config/skel.xml"> 14 <!ENTITY postlfs-config-netfs SYSTEM "config/netfs.xml"> 14 15 15 16 <!-- Post-LFS Security --> 16 17 <!ENTITY postlfs-security SYSTEM "security/security.xml">