aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts/lfs/init.d/network
diff options
context:
space:
mode:
Diffstat (limited to 'bootscripts/lfs/init.d/network')
-rw-r--r--bootscripts/lfs/init.d/network13
1 files changed, 8 insertions, 5 deletions
diff --git a/bootscripts/lfs/init.d/network b/bootscripts/lfs/init.d/network
index 622a2a40d..c34123555 100644
--- a/bootscripts/lfs/init.d/network
+++ b/bootscripts/lfs/init.d/network
@@ -7,6 +7,7 @@
# Authors : Gerard Beekmans - gerard@linuxfromscratch.org
# Nathan Coulson - nathan@linuxfromscratch.org
# Kevin P. Fleming - kpfleming@linuxfromscratch.org
+# DJ Lucas - dj@linuxfromscratch.org
# Update : Bruce Dubbs - bdubbs@linuxfromscratch.org
#
# Version : LFS 7.0
@@ -33,7 +34,7 @@ case "${1}" in
do
interface=${file##*/ifconfig.}
- # skip if $file is * (because nothing was found)
+ # Skip if $file is * (because nothing was found)
if [ "${interface}" = "*" ]
then
continue
@@ -45,18 +46,18 @@ case "${1}" in
stop)
# Reverse list
- FILES=""
+ net_files=""
for file in /etc/sysconfig/ifconfig.*
do
- FILES="${file} ${FILES}"
+ net_files="${file} ${net_files}"
done
# Stop all network interfaces
- for file in ${FILES}
+ for file in ${net_files}
do
interface=${file##*/ifconfig.}
- # skip if $file is * (because nothing was found)
+ # Skip if $file is * (because nothing was found)
if [ "${interface}" = "*" ]
then
continue
@@ -78,4 +79,6 @@ case "${1}" in
;;
esac
+exit 0
+
# End network