Fix two typos. Using "-eq" instead of "=" in a [ caused an error when
an entry in /etc/sysctl.conf didn't exist. Fixing this exposed a minor typo "exits" vs. "exist". However, there doesn't appear to be any provision to run this with the "lastload" argument, meaning that the error will never appear.
This commit is contained in:
parent
76b4b15fcf
commit
dab1b45261
@ -49,8 +49,8 @@ FreeBSD_start()
|
||||
sysctl ${var}
|
||||
;;
|
||||
esac
|
||||
elif [ "$1" -eq "last" ]; then
|
||||
warn "sysctl ${mib} does not exits."
|
||||
elif [ "$1" = "last" ]; then
|
||||
warn "sysctl ${mib} does not exist."
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user