aboutsummaryrefslogtreecommitdiffstats
path: root/bootscripts/contrib/lsb-v3/init.d/localnet
diff options
context:
space:
mode:
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