1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-02-14 11:31:51 +00:00

No init if no host

This commit is contained in:
Ycarus (Yannick Chabanois) 2020-04-22 19:11:03 +02:00
parent 0d643b0a79
commit a27050b643

View file

@ -48,6 +48,7 @@ start_instance() {
[ "${key}" != "secretkey" ] || return 1
[ -n "${port}" ] || return 1
[ -n "${dev}" ] || return 1
[ -n "${host}" ] || return 1
echo "${key}" > /tmp/${PROG_NAME}-${1}.key
[ -f "/tmp/${PROG_NAME}-${1}.key" ] || {