Support NetBSD 4
authorJamie Cameron <jcameron@webmin.com>
Thu, 17 Jul 2008 21:33:32 +0000 (21:33 +0000)
committerJamie Cameron <jcameron@webmin.com>
Thu, 17 Jul 2008 21:33:32 +0000 (21:33 +0000)
mount/netbsd-lib.pl

index a098318..c8c8711 100755 (executable)
@@ -128,7 +128,7 @@ sub list_mounted
 {
 # get the list of mounted filesystems
 local(@rv, $_);
-local $cmd = $uname_release =~ /^3\.[0-9]/ ? "netbsd-mounts-3" :
+local $cmd = $uname_release =~ /^[345]\.[0-9]/ ? "netbsd-mounts-3" :
             $uname_release =~ /^2\.[0-9]/ ? "netbsd-mounts-2" :
                                             "netbsd-mounts";
 &compile_program($cmd);