修改 daemon.py 检测sd卡目录为 /run/media/sda/updata

This commit is contained in:
ranchuan
2023-09-28 16:58:07 +08:00
parent 419d66168a
commit b784c66e23
2 changed files with 5 additions and 2 deletions

View File

@@ -41,8 +41,9 @@ def _do_cmd(cmd:str):
class auto_updata(object):
def __init__(self):
self.sd_path="/run/media/sda"
self.file_path=self.sd_path+'/updata'
self.sd_path="/run/media/sda/updata"
# self.file_path=self.sd_path+'/updata'
self.file_path=self.sd_path
self.sd_inserd_state = False
self.file_list=[]
def sd_check(self):