diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-02-10 05:11:28 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2012-02-10 05:11:28 +0000 |
commit | 6553bff0df545f505c036a430f94008258747a90 (patch) | |
tree | 690914fe3792fd17ff1cfe95cfcb10847acc84b7 /bootscripts | |
parent | fe3809eb7a28721c9d54a04bc2cd2f4642c475fe (diff) |
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
Diffstat (limited to 'bootscripts')
-rwxr-xr-x | bootscripts/lfs/sbin/ifup | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bootscripts/lfs/sbin/ifup b/bootscripts/lfs/sbin/ifup index 2e3d88e49..744b4cea2 100755 --- a/bootscripts/lfs/sbin/ifup +++ b/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 |