diff options
-rw-r--r-- | man/man4/fontsrv.4 | 4 | ||||
-rw-r--r-- | src/cmd/fontsrv/main.c | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/man/man4/fontsrv.4 b/man/man4/fontsrv.4 index b567c3fa..1aa6bcb6 100644 --- a/man/man4/fontsrv.4 +++ b/man/man4/fontsrv.4 @@ -7,6 +7,10 @@ fontsrv \- file system access to host fonts .B -m .I mtpt ] +[ +.B -s +.I srvname +] .PP .B fontsrv .B -p diff --git a/src/cmd/fontsrv/main.c b/src/cmd/fontsrv/main.c index c8a179df..93eb39e2 100644 --- a/src/cmd/fontsrv/main.c +++ b/src/cmd/fontsrv/main.c @@ -483,9 +483,10 @@ fontcmp(const void *va, const void *vb) void main(int argc, char **argv) { - char *mtpt; - - mtpt = unsharp("#9/font/mnt"); + char *mtpt, *srvname; + + mtpt = nil; + srvname = "font"; ARGBEGIN{ case 'D': @@ -497,6 +498,9 @@ main(int argc, char **argv) case 'm': mtpt = EARGF(usage()); break; + case 's': + srvname = EARGF(usage()); + break; case 'p': pflag++; break; @@ -536,7 +540,7 @@ main(int argc, char **argv) sysfatal("mountpoint %s does not exist", mtpt); xsrv.foreground = 1; - threadpostmountsrv(&xsrv, "font", mtpt, 0); + threadpostmountsrv(&xsrv, srvname, mtpt, 0); } /* |