r1758 - in profiles/LFS/trunk: chapter07 config skeleton/etc skeleton/etc/sysconfig skeleton/etc/sysconfig/network-devices skeleton/etc/sysconfig/network-devices/ifconfig.eth0

kpfleming at linuxfromscratch.org kpfleming at linuxfromscratch.org
Sat Feb 12 09:11:19 PST 2005


Author: kpfleming
Date: 2005-02-12 10:11:18 -0700 (Sat, 12 Feb 2005)
New Revision: 1758

Added:
   profiles/LFS/trunk/skeleton/etc/resolv.conf
   profiles/LFS/trunk/skeleton/etc/sysconfig/network-devices/
   profiles/LFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/
   profiles/LFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/ipv4
Modified:
   profiles/LFS/trunk/chapter07/network.xml
   profiles/LFS/trunk/config/general.ent
Log:
move etc/resolv.conf and etc/sysconfig/network-devices/ifconfig.eth0/ipv4 to skeleton



Modified: profiles/LFS/trunk/chapter07/network.xml
===================================================================
--- profiles/LFS/trunk/chapter07/network.xml	2005-02-12 17:05:57 UTC (rev 1757)
+++ profiles/LFS/trunk/chapter07/network.xml	2005-02-12 17:11:18 UTC (rev 1758)
@@ -11,26 +11,13 @@
       <option>parents</option>
       <name>/etc/sysconfig/network-devices/ifconfig.eth0</name>
     </mkdir>
-    <textdump>
-      <file>/etc/sysconfig/network-devices/ifconfig.eth0/ipv4</file>
-      <content>
-	=ONBOOT=&on_boot; 
-	=SERVICE=ipv4-static 
-	=IP=&IP; 
-	=GATEWAY=&gateway; 
-	=PREFIX=&prefix; 
-	=BROADCAST=&broadcast;
-      </content>
-    </textdump>
-    <textdump>
-      <file>/etc/resolv.conf</file>
-      <content>
-	=# Begin /etc/resolv.conf
-	= 
-	=nameserver &nameserver-ip; 
-	= 
-	=# End /etc/resolv.conf
-      </content>
-    </textdump>
+    <copy>
+      <source>&skeleton_dir;/etc/sysconfig/network-devices/ifconfig.eth0/ipv4</source>
+      <destination>/etc/sysconfig/network-devices/ifconfig.eth0</destination>
+    </copy>
+    <copy>
+      <source>&skeleton_dir;/etc/resolv.conf</source>
+      <destination>/etc</destination>
+    </copy>
   </stage>
 </alfs>

Modified: profiles/LFS/trunk/config/general.ent
===================================================================
--- profiles/LFS/trunk/config/general.ent	2005-02-12 17:05:57 UTC (rev 1757)
+++ profiles/LFS/trunk/config/general.ent	2005-02-12 17:11:18 UTC (rev 1758)
@@ -56,22 +56,6 @@
      -->
 <!ENTITY domain "your.domain">
 
-<!-- Some networking entities.
-     These entities are used when creating the files
-     /etc/sysconfig/network and 
-     /etc/sysconfig/network-devices/ifconfig.eth0
-     -->
-<!ENTITY gateway    "172.16.1.1">
-<!ENTITY on_boot    "yes">
-<!ENTITY IP         "172.16.1.22">
-<!ENTITY prefix     "24">
-<!ENTITY broadcast  "172.16.1.255">
-
-<!-- In the entity below replace 127.0.0.1 with the IP address of the DNS server most appropriate for
-your setup. This will often be provided by your ISP or it may even be a router on your local
-network.-->
-<!ENTITY nameserver-ip "127.0.0.1">
-
 <!-- Set here the name of the module of your network card -->
 <!ENTITY network-card-module "sis900">
 <!ENTITY network-interface   "eth0">

Added: profiles/LFS/trunk/skeleton/etc/resolv.conf
===================================================================
--- profiles/LFS/trunk/skeleton/etc/resolv.conf	2005-02-12 17:05:57 UTC (rev 1757)
+++ profiles/LFS/trunk/skeleton/etc/resolv.conf	2005-02-12 17:11:18 UTC (rev 1758)
@@ -0,0 +1,5 @@
+# Begin /etc/resolv.conf
+
+nameserver 127.0.0.1
+
+# End /etc/resolv.conf

Added: profiles/LFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/ipv4
===================================================================
--- profiles/LFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/ipv4	2005-02-12 17:05:57 UTC (rev 1757)
+++ profiles/LFS/trunk/skeleton/etc/sysconfig/network-devices/ifconfig.eth0/ipv4	2005-02-12 17:11:18 UTC (rev 1758)
@@ -0,0 +1,7 @@
+ONBOOT=yes
+SERVICE=ipv4-static 
+IP=172.16.1.22
+GATEWAY=172.16.1.1
+PREFIX=24
+BROADCAST=172.16.1.255
+




More information about the alfs-log mailing list