File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / doc / mpd13.html
Revision 1.1.1.4 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:39:23 2021 UTC (3 years, 3 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_9p16, v5_9, HEAD
mpd 5.9

    1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    2: <HTML>
    3: <HEAD>
    4: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    5: <TITLE>mpd.conf</TITLE>
    6: </HEAD>
    7: <BODY text="#000000" bgcolor="#ffffff">
    8: 
    9: <A HREF="mpd.html"><EM>Mpd 5.9 User Manual</EM></A>
   10:  <b>:</b> <A HREF="mpd9.html"><EM>Running Mpd</EM></A>
   11:  <b>:</b> <A HREF="mpd11.html"><EM>Configuration file format</EM></A>
   12:  <b>:</b> <EM><code>mpd.conf</code></EM><BR>
   13: <b>Previous:</b> <A HREF="mpd12.html"><EM>General properties</EM></A><BR>
   14: <b>Next:</b> <A HREF="mpd14.html"><EM><code>mpd.secret</code></EM></A>
   15: 
   16: 
   17: <HR NOSHADE>
   18:   <H2><A NAME="13"></A>3.2.2. <code>mpd.conf</code></H2>
   19: <p>An <em>entry</em> consists of a <em>label</em> followed by a sequence of
   20: mpd commands.
   21: A label begins at the first column and ends with a colon
   22: character. Commands are indented with a tab character
   23: and follow the label on the next and subsequent lines.</p>
   24: <p>Here is an example <code>mpd.conf</code> that contains a single
   25: configuration <code>client</code> that defines a single bundle template <code>B1</code>
   26: and one link <code>L1</code>:
   27: <blockquote><code>
   28: <pre>
   29: #
   30: # mpd.conf configuration file
   31: #
   32: 
   33: client:
   34: 	create bundle template B1
   35: 
   36: 	create link static L1 modem
   37: 	set modem device /dev/cuau0
   38: 	set modem speed 115200
   39: 	set modem script DialPeer
   40: 	set modem idle-script AnswerCall
   41: 	set modem var $DialPrefix "DT"
   42: 	set modem var $Telephone "1234567"
   43: 	set link no pap chap eap
   44: 	set link accept pap
   45: 	set auth authname "MyLogin"
   46: 	set auth password "MyPassword"
   47: 	set link max-redial 0
   48: 	set link action bundle B1
   49: 	open
   50: </pre>
   51: </code></blockquote>
   52: </p>
   53: <p>Commands are independent and executed one by one as if they were
   54: entered using console. Most command operation depends on the active
   55: context, which includes currently active link, bundle and repeater.
   56: Information about active context is shown at the console command prompt.
   57: Some commands, like <code>link</code>, <code>bundle</code>, <code>repeater</code>
   58: and <code>create</code> can change this context.</p>
   59: 
   60:  <HR NOSHADE>
   61: <A HREF="mpd.html"><EM>Mpd 5.9 User Manual</EM></A>
   62:  <b>:</b> <A HREF="mpd9.html"><EM>Running Mpd</EM></A>
   63:  <b>:</b> <A HREF="mpd11.html"><EM>Configuration file format</EM></A>
   64:  <b>:</b> <EM><code>mpd.conf</code></EM><BR>
   65: <b>Previous:</b> <A HREF="mpd12.html"><EM>General properties</EM></A><BR>
   66: <b>Next:</b> <A HREF="mpd14.html"><EM><code>mpd.secret</code></EM></A>
   67: 
   68: 
   69: 
   70: </BODY>
   71: </HTML>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>