X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Foptions.c;h=5a194b59ea1054511f3ec402601753c529189d7b;hp=ae12981dffdf34681dc4a0ec441687ffda7b09db;hb=2dc6b270ecf72688083f03d80df67d0682e1e02c;hpb=289e4c84880ca19342a65ba5703d62b27dc69950 diff --git a/pppd/options.c b/pppd/options.c index ae12981..5a194b5 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: options.c,v 1.41 1998/03/25 01:29:05 paulus Exp $"; +static char rcsid[] = "$Id: options.c,v 1.42 1998/03/26 04:46:06 paulus Exp $"; #endif #include @@ -173,6 +173,7 @@ static int setcrtscts __P((char **)); static int setnocrtscts __P((char **)); static int setxonxoff __P((char **)); static int setnodetach __P((char **)); +static int setupdetach __P((char **)); static int setmodem __P((char **)); static int setlocal __P((char **)); static int setlock __P((char **)); @@ -275,6 +276,7 @@ static struct cmd { {"-d", 0, setdebug}, /* Increase debugging level */ {"nodetach", 0, setnodetach}, /* Don't detach from controlling tty */ {"-detach", 0, setnodetach}, /* don't fork */ + {"updetach", 0, setupdetach}, /* Detach once an NP has come up */ {"noip", 0, noip}, /* Disable IP and IPCP */ {"-ip", 0, noip}, /* Disable IP and IPCP */ {"nomagic", 0, nomagicnumber}, /* Disable magic number negotiation */ @@ -1870,6 +1872,14 @@ setnodetach(argv) return (1); } +static int +setupdetach(argv) + char **argv; +{ + nodetach = -1; + return (1); +} + static int setdemand(argv) char **argv;