From 8fd5cdb0624acb41b2e43cb65e25d57ea67bc115 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Mon, 22 Feb 2016 23:03:31 +0000 Subject: [PATCH] more generic drive detection git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2698 2a923420-c742-0410-a762-8d5b09965624 --- webif/lib/system.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webif/lib/system.class b/webif/lib/system.class index e81986c..c7f6d5d 100644 --- a/webif/lib/system.class +++ b/webif/lib/system.class @@ -603,14 +603,14 @@ proc {system usbmounts} {{full 0}} { set num 0 catch { set num [ - exec grep -cE {/media/(usb-|gpt-|exfat-)?drive} \ + exec grep -cE {/media/([a-z-]+-)?drive} \ /proc/mounts] } return $num } set ret {} if {[catch { - set lines [exec grep -E {media/(usb-|gpt-|exfat-)?drive} \ + set lines [exec grep -E {media/([a-z-]+-)?drive} \ /proc/mounts] }]} { return $ret } foreach line [split $lines "\n"] {