script: fix else statement
authorMunkyu Im <munkyu.im@samsung.com>
Tue, 8 Sep 2015 04:16:20 +0000 (13:16 +0900)
committerSangho Park <sangho.p@samsung.com>
Tue, 8 Sep 2015 07:32:27 +0000 (16:32 +0900)
"elif" needs condition, but in this case
do not need condition so replace this with "else".

Change-Id: Id2966379d79c579c15f345255a59220f49f3cbd2
Signed-off-by: Munkyu Im <munkyu.im@samsung.com>
tizen/src/scripts/emulator-ifup-linux.sh

index 44b0522996ba46bd8cb40b6f522bb1b7663bdc8f..e111dcffad973c55802efae9b9b1359eedab4958 100755 (executable)
@@ -5,7 +5,7 @@
 
 if [ "$2" == "" ];then
     NETMASK=""
-elif
+else
     NETMASK=`ifconfig $2 | grep "inet " | awk '{print $4}' | cut -d : -f2`
 fi
 GW=`netstat -rn | grep ^0.0.0.0 | awk '{print $2}'`
@@ -42,7 +42,7 @@ if [ "$NETMASK" == "" ];then
     echo "netmask is NULL"
     echo ifconfig $BR $BASEIPADDR
     ifconfig $BR $BASEIPADDR
-elif
+else
     echo ifconfig $BR $BASEIPADDR netmask $NETMASK
     ifconfig $BR $BASEIPADDR netmask $NETMASK
 fi