summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/bundle.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-02-17 01:05:47 +0000
committerBrian Somers <brian@FreeBSD.org>1998-02-17 01:05:47 +0000
commitc5a5a6ca936756b4cb36388b3e51b916e63d3aac (patch)
tree1224f0affa4877bdcacc3331f787ab08f332d2a0 /usr.sbin/ppp/bundle.c
parenteaf65a36096dc53c8af50f369091156e2cd78731 (diff)
downloadsrc-test2-c5a5a6ca936756b4cb36388b3e51b916e63d3aac.tar.gz
src-test2-c5a5a6ca936756b4cb36388b3e51b916e63d3aac.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/bundle.c')
-rw-r--r--usr.sbin/ppp/bundle.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c
index d2cf7a8150ec..27e301bf5d8d 100644
--- a/usr.sbin/ppp/bundle.c
+++ b/usr.sbin/ppp/bundle.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bundle.c,v 1.1.2.9 1998/02/15 23:59:39 brian Exp $
+ * $Id: bundle.c,v 1.1.2.10 1998/02/16 19:09:37 brian Exp $
*/
#include <sys/param.h>
@@ -554,10 +554,15 @@ bundle_LinkClosed(struct bundle *bundle, struct datalink *dl)
if (!(mode & MODE_AUTO))
bundle_DownInterface(bundle);
+
if (mode & MODE_DDIAL)
- datalink_Up(dl);
+ datalink_Up(dl, 1, 1);
else
bundle_NewPhase(bundle, NULL, PHASE_DEAD);
+
+ if (mode & MODE_INTER)
+ prompt_Display(&prompt, bundle);
+
}
void
@@ -616,10 +621,12 @@ bundle_Open(struct bundle *bundle, const char *name)
* Please open the given datalink, or all if name == NULL
*/
struct datalink *dl;
+ int runscripts;
+ runscripts = (mode & (MODE_DIRECT|MODE_DEDICATED)) ? 0 : 1;
for (dl = bundle->links; dl; dl = dl->next)
if (name == NULL || !strcasecmp(dl->name, name)) {
- datalink_Up(dl);
+ datalink_Up(dl, runscripts, 1);
if (name != NULL)
break;
}