p_name=$1
APP_NAME=${p_name%.*}
wrt-installer -i $PACKAGENAME
- App_ID=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The installation is failed"
return 1
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
- App_ID=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The widget is not installed"
wrt-installer -i $PACKAGENAME
- App_ID=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The installation is failed"
return 1
fi
fi
- WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ WIDGETNAME=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
wrt-installer -un $WIDGETNAME
- App_ID=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The widget is uninstalled successfully"
return 0
PACKAGENAME="$path/$1"
p_name=$1
APP_NAME=${p_name%.*}
- WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ WIDGETNAME=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
wrt-launcher -s $WIDGETNAME
App_Status=`wrt-launcher -r $WIDGETNAME | grep "not running"`
if [ -z $App_Status ];then
APP_NAME="WIdgetIDAppID"
fi
wrt-installer -i $PACKAGENAME
- App_ID=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The installation is failed"
return 1
elif [ "$APP_NAME" = "WIdgetIDAppID-same1" -o "$APP_NAME" = "WIdgetIDAppID-same2" -o "$APP_NAME" = "WIdgetIDAppID-different" ];then
APP_NAME="WIdgetIDAppID"
fi
- App_ID=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The widget is not installed"
wrt-installer -i $PACKAGENAME
- App_ID=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The installation is failed"
return 1
fi
fi
- WIDGETNAME=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ WIDGETNAME=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
wrt-installer -un $WIDGETNAME
- App_ID=`wrt-launcher -l|grep $APP_NAME|awk '{print $NF}'`
+ App_ID=`wrt-launcher -l|grep -w $APP_NAME|awk '{print $NF}'`
if [ -z $App_ID ];then
echo "The widget is uninstalled successfully"
return 0