summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lbu-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lbu-model.lua b/lbu-model.lua
index 9e23eec..1b9cd79 100644
--- a/lbu-model.lua
+++ b/lbu-model.lua
@@ -41,7 +41,7 @@ local function availablemedias()
local medias = {}
local fstab = fs.read_file("/etc/fstab") or ""
for media in string.gmatch(fstab, "/media/(%w+)%s") do
- if media ~= "cdrom" then
+ if not string.find(media, "^cdrom") and not string.find(media, "^dvd") then
medias[#medias+1] = media
end
end