aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts/contrib/lsb-v3/init.d/localnet
diff options
context:
space:
mode:
authorDJ Lucas <dj@linuxfromscratch.org>2010-06-27 07:33:25 +0000
committerDJ Lucas <dj@linuxfromscratch.org>2010-06-27 07:33:25 +0000
commit559731897ec9f68b90744433e4f68402c2ce31d2 (patch)
treed2905e5533738cca5cfbca6df2252699aaef2785 /bootscripts/contrib/lsb-v3/init.d/localnet
parentc8595ed6458eee262e330e2a2554f0e3fab51648 (diff)
Standardized urinary comparisons^Cn tests
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9324 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'bootscripts/contrib/lsb-v3/init.d/localnet')
-rw-r--r--bootscripts/contrib/lsb-v3/init.d/localnet8
1 files changed, 4 insertions, 4 deletions
diff --git a/bootscripts/contrib/lsb-v3/init.d/localnet b/bootscripts/contrib/lsb-v3/init.d/localnet
index 7e520bbe4..c63c4baa6 100644
--- a/bootscripts/contrib/lsb-v3/init.d/localnet
+++ b/bootscripts/contrib/lsb-v3/init.d/localnet
@@ -22,7 +22,7 @@ case "${1}" in
start)
ip addr add 127.0.0.1/8 label lo dev lo
ip link set lo up
- if [ "${?}" = "0" ]
+ if [ "${?}" -eq "0" ]
then
log_success_msg "Bringing up the loopback interface..."
else
@@ -30,7 +30,7 @@ case "${1}" in
fi
hostname "${HOSTNAME}"
- if [ "${?}" = "0" ]
+ if [ "${?}" -eq "0" ]
then
log_success_msg "Setting hostname to ${HOSTNAME}..."
else
@@ -41,7 +41,7 @@ case "${1}" in
stop)
ip link set lo down
- if [ "${?}" = "0" ]
+ if [ "${?}" -eq "0" ]
then
log_success_msg "Bringing down the loopback interface..."
else
@@ -60,7 +60,7 @@ case "${1}" in
retval=$(( "${retval}" + "${?}" ))
hostname "${HOSTNAME}"
retval=$(( "${retval}" + "${?}" ))
- if [ "${retval}" = "0" ]
+ if [ "${retval}" -eq "0" ]
then
log_success_msg "Restarting local network..."
else