Skip to content

Commit

Permalink
* ignore /media/audiocd
Browse files Browse the repository at this point in the history
  • Loading branch information
jbleyel committed Jan 8, 2025
1 parent 05c520d commit 2f38857
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/python/Components/Storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def cleanMediaDirs():
mounts = getProcMountsNew()
mounts = [x[1] for x in mounts if x[1].startswith("/media/")]
for directory in listdir("/media"):
if directory not in ("autofs", "hdd"):
if directory not in ("audiocd", "autofs", "hdd"):
mediaDirectory = join("/media/", directory)
if mediaDirectory not in mounts and not ismount(mediaDirectory):
print(f"[Storage] remove directory {mediaDirectory} because of unmount")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def checkPlugins(self):
def userRestoreScript(self, ret=None):
scriptPath = None
for directory in listdir("/media"):
if directory != "autofs":
if directory not in ("audiocd", "autofs"):
configPath = join("/media", directory, "images/config/myrestore.sh")
if exists(configPath):
scriptPath = configPath
Expand Down
2 changes: 1 addition & 1 deletion lib/python/Screens/FlashManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ def postFlashActionCallback(self, choice):
if choice:
knownFlagFiles = ("settings", "plugins", "noplugins", "slow", "fast", "turbo")
for directory in listdir("/media"): # Remove known flag files from devices other than /media/hdd.
if directory not in ("autofs", "hdd"):
if directory not in ("audiocd", "autofs", "hdd"):
for flagFile in knownFlagFiles:
flagPath = join("/media", directory, "images/config", flagFile)
if isfile(flagPath) and getsize(flagPath) == 0:
Expand Down

0 comments on commit 2f38857

Please sign in to comment.