tmount: use /proc/filesystems to check for fuse, 9p (uriel) - plan9port - [fork] Plan 9 from user space
 (HTM) git clone git://src.adamsgaard.dk/plan9port
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 5a0f92355773ed73fbc26e5770b7335f61df6e65
 (DIR) parent fa3c8da1c01edc6559fa6ea71fdfb402cd9914b4
 (HTM) Author: Russ Cox <rsc@swtch.com>
       Date:   Thu, 19 Jun 2008 10:51:12 -0400
       
       mount: use /proc/filesystems to check for fuse, 9p (uriel)
       
       Diffstat:
         M bin/mount                           |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/bin/mount b/bin/mount
       t@@ -6,12 +6,12 @@ if(! ~ $#* 2){
        }
        switch(`{uname}){
        case Linux
       -        if(lsmod|9 grep -si '^9p(2000)? '){
       +        if(9 grep -si '        9p(2000)?$' /proc/filesystems){
                        if(u test -S $1)
                                exec u mount -t 9p -o proto'='unix,name'='$USER $1 $2
                        exec u mount -t 9p -o proto'='tcp,name'='$USER $1 $2
                }
       -        if(lsmod|9 grep -si '^fuse ')
       +        if(9 grep -si '        fuse$' /proc/filesystems)
                        exec 9pfuse $1 $2
                echo 'don''t know how to mount (no 9p, no fuse)' >[1=2]
        case FreeBSD