little changes in main script
This commit is contained in:
parent
b88dfa1bb9
commit
696b1e7342
|
|
@ -122,11 +122,6 @@ EOF
|
|||
local password="$5"
|
||||
local iface="${6:-ppp0}"
|
||||
|
||||
if ip link show $iface > /dev/null 2>&1; then
|
||||
echo "Interface $iface already exists"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
args=""
|
||||
if [[ -z $topic ]]; then
|
||||
echo "topic must be provided to \`mqtt_off\` function"
|
||||
|
|
@ -209,5 +204,6 @@ case $# in
|
|||
;;
|
||||
*)
|
||||
print_usage
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user