From dc6210b545f1fbccf7a840316d75f576870520ff Mon Sep 17 00:00:00 2001 From: shenmo Date: Tue, 26 Apr 2022 10:19:31 +0000 Subject: [PATCH] update tool/update-upgrade/ss-update-controler.sh. --- tool/update-upgrade/ss-update-controler.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tool/update-upgrade/ss-update-controler.sh b/tool/update-upgrade/ss-update-controler.sh index 8edf3f7..ac93e9b 100755 --- a/tool/update-upgrade/ss-update-controler.sh +++ b/tool/update-upgrade/ss-update-controler.sh @@ -18,10 +18,18 @@ read reset endloop=0 + +if [ -f /etc/xdg/autostart/spark-update-notifier.desktop ];then +textupdateopen="关闭" +#已经开启了就显示关闭 +else +textupdateopen="开启" +fi + while [ $endloop -eq 0 ] ;do echo "欢迎使用星火更新工具 脚本版 " echo "请在以下操作中选择一个进行~" -echo "输入1 开启或关闭星火更新检测工具(如果开启则会在系统启动后自动检测更新。如有更新则会弹出通知)" +echo "输入1 $textupdateopen星火更新检测工具(如果开启则会在系统启动后自动检测更新。如有更新则会弹出通知)" echo "输入2 查看可更新软件包列表并决定是否更新" echo "输入3 退出脚本" read option