From 951489c0cd1288c8c4effd7e5b5a29b51fc71f10 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 19 Jul 2015 15:52:21 +0100 Subject: [PATCH] Conditions not needed for the mesh variant --- src/freedombone | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/freedombone b/src/freedombone index 30da831c..a17fa6ea 100755 --- a/src/freedombone +++ b/src/freedombone @@ -703,13 +703,15 @@ function parse_args { show_help exit 3 fi - if [ ! $DDNS_USERNAME ]; then - echo 'Please provide the username for your dynamic DNS provider with the --ddnsuser option' - exit 7823 - fi - if [ ! $DDNS_PASSWORD ]; then - echo 'Please provide the password for your dynamic DNS provider with the --ddnspass option' - exit 6382 + if [[ $SYSTEM_TYPE != "$VARIANT_MESH" ]]; then + if [ ! $DDNS_USERNAME ]; then + echo 'Please provide the username for your dynamic DNS provider with the --ddnsuser option' + exit 7823 + fi + if [ ! $DDNS_PASSWORD ]; then + echo 'Please provide the password for your dynamic DNS provider with the --ddnspass option' + exit 6382 + fi fi if [ ! $SYSTEM_TYPE ]; then SYSTEM_TYPE=$VARIANT_FULL