浏览代码

Fix typo and clarify error check in ifup script

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9739 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs 13 年之前
父节点
当前提交
6553bff0df
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 4 4
      bootscripts/lfs/sbin/ifup
  2. 1 1
      packages.ent

+ 4 - 4
bootscripts/lfs/sbin/ifup

@@ -76,11 +76,11 @@ if [ "${IN_BOOT}" = "1" -a "${ONBOOT}" != "yes" ]; then
    exit 0
 fi
 
-for S in ${SERVICES}; do
-  if [ ! -n "${S}" -o ! -x "/lib/services/${S}" ]; then
+for S in ${SERVICE}; do
+  if [ ! -x "/lib/services/${S}" ]; then
     MSG="\nUnable to process ${file}.  Either " 
-    MSG="${MSG}the SERVICE variable was not set "
-    MSG="${MSG}or the specified service cannot be executed."
+    MSG="${MSG}the SERVICE '${S} was not present "
+    MSG="${MSG}or cannot be executed."
     log_failure_msg "$MSG"
     exit 1
   fi

+ 1 - 1
packages.ent

@@ -305,7 +305,7 @@
 <!ENTITY less-ch6-du "3.5 MB">
 <!ENTITY less-ch6-sbu "less than 0.1 SBU">
 
-<!ENTITY lfs-bootscripts-version "20120204">                 <!-- Scripts depend on this format -->
+<!ENTITY lfs-bootscripts-version "20120209">                 <!-- Scripts depend on this format -->
 <!ENTITY lfs-bootscripts-size "BOOTSCRIPTS-SIZE KB">         <!-- Updated in Makefile -->
 <!ENTITY lfs-bootscripts-url "&downloads-root;lfs-bootscripts-&lfs-bootscripts-version;.tar.bz2">
 <!ENTITY lfs-bootscripts-md5 "BOOTSCRIPTS-MD5SUM">           <!-- Updated in Makefile -->