From 0d7a949eb5f7d1cfb0f57fbae0ad658579f09d1f Mon Sep 17 00:00:00 2001 From: Artur Grabowski Date: Sat, 5 Sep 1998 20:00:06 +0000 Subject: make a link to mount_afs that will automagically start afsd --- sbin/mount_xfs/mount_xfs.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'sbin/mount_xfs/mount_xfs.c') diff --git a/sbin/mount_xfs/mount_xfs.c b/sbin/mount_xfs/mount_xfs.c index 8491a820276..0ca7eee5475 100644 --- a/sbin/mount_xfs/mount_xfs.c +++ b/sbin/mount_xfs/mount_xfs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mount_xfs.c,v 1.1 1998/09/05 17:33:29 art Exp $ */ +/* $OpenBSD: mount_xfs.c,v 1.2 1998/09/05 20:00:05 art Exp $ */ /* * Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan * (Royal Institute of Technology, Stockholm, Sweden). @@ -62,7 +62,7 @@ static const struct mntopt mopts[] = { static void usage(void) { - fprintf(stderr, "Usage: %s [-a] [-o options] device path\n", + fprintf(stderr, "Usage: %s [-o options] device path\n", __progname); exit(1); } @@ -74,21 +74,17 @@ main(int argc, char **argv) int error; int ch; int mntflags = 0; -#ifdef not_yet - int afsd = 1; -#endif + int afsd = 0; + + if (strstr(__progname, "mount_afs")) + afsd = 1; optind = optreset = 1; - while ((ch = getopt(argc, argv, "ao:")) != -1) + while ((ch = getopt(argc, argv, "o:")) != -1) switch (ch) { case 'o': getmntopts(optarg, mopts, &mntflags); break; -#ifdef not_yey - case 'a': - afsd = 0; - break; -#endif case '?': default: usage(); -- cgit v1.2.3