Fixed can't remove preinstall widget during booting
authorSoyoung Kim <sy037.kim@samsung.com>
Wed, 21 Nov 2012 09:14:05 +0000 (18:14 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Tue, 27 Nov 2012 07:05:25 +0000 (16:05 +0900)
[Issue#] N/A
[Problem] preinstall widget can't be removed after booting.
[Cause] N/A
[Solution] Fixed wrt_preinstall_widgets.sh script.
[SCMRequest] N/A

Change-Id: I5cc44a0dda6acb8718d3236af7eb5875d1501793

etc/wrt_preinstall_widgets.sh

index 66c5515..5b36b0c 100755 (executable)
@@ -24,7 +24,7 @@ install_widgets() {
        do
                echo "Install $list"
                return_string=`wrt-installer -i $list`
-        if [ `expr match "$return_string" 'installed'` -gt 0 ]; then
+        if [ "$return_string" != "${return_string/installed/}" ]; then
             echo "$list widget installation success"
             rm -rf $list
         else