From 579fd4e5a82f00018a3a487724828748a1e55339 Mon Sep 17 00:00:00 2001 From: Soyoung Kim Date: Wed, 21 Nov 2012 18:14:05 +0900 Subject: [PATCH] Fixed can't remove preinstall widget during booting [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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/wrt_preinstall_widgets.sh b/etc/wrt_preinstall_widgets.sh index 66c5515..5b36b0c 100755 --- a/etc/wrt_preinstall_widgets.sh +++ b/etc/wrt_preinstall_widgets.sh @@ -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 -- 2.7.4