说实话~我看得也是脑袋大~
你试试改成这样~
showRadio \"java注册名修改\" \"请选择要修改的项,取消请按挂机或否键:\" $list
idx=$?
if [ $idx -eq 0 ]
then
exit
else
i=0
for l in $list
do
i=`busybox expr $i + 1`
if [ $i -ne $idx ]
then
continue
else
showMsg \"重命名$l\" \"取消请按挂机或否键!\" 1
if [ $? -eq 0 ]
then
break
else
TEXTNAME=`showTextEntry 0 \"重命名$l\" \"请输入新名称:\"`
if [ $? != 0 ] && [ \"$TEXTNAME\" != \"\" ]
then
sed -i \"s/$l/$TEXTNAME/\" /mmc/mmca1/.system/java/CardRegistry
showNotify \"\" \"$l成功修改为$TEXTNAME重启手机后生效\" 1 3
break
fi
fi
fi
done
fi