aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorThan Ngo <than@redhat.com>2004-08-19 12:02:42 +0000
committerThan Ngo <than@redhat.com>2004-08-19 12:02:42 +0000
commitd0b0e914811a3029db21b9471b22e7fd4c20de4c (patch)
treec342b94feed858fcdec27b4e123cfa6f351b8e3e /sysconfig/network-scripts
parentb6f842f4ae14b283e7fa9e301c8f0c483434e0a1 (diff)
downloadinitscripts-d0b0e914811a3029db21b9471b22e7fd4c20de4c.tar
initscripts-d0b0e914811a3029db21b9471b22e7fd4c20de4c.tar.gz
initscripts-d0b0e914811a3029db21b9471b22e7fd4c20de4c.tar.bz2
initscripts-d0b0e914811a3029db21b9471b22e7fd4c20de4c.tar.xz
initscripts-d0b0e914811a3029db21b9471b22e7fd4c20de4c.zip
- allow CBCP with own number (#125710)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-ippp13
1 files changed, 12 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifup-ippp b/sysconfig/network-scripts/ifup-ippp
index fd1b8bdb..7a72a333 100755
--- a/sysconfig/network-scripts/ifup-ippp
+++ b/sysconfig/network-scripts/ifup-ippp
@@ -283,7 +283,18 @@ function addprovider()
[ -n "$MTU" ] && options="$options mtu $MTU"
# set CBCP protocoll
- [ "$CBCP" = "on" ] && options="$options callback 6"
+ if [ "$CBCP" = "on" ] ; then
+ if [ -n "$CBCP_MSN" ] ; then
+ # User managed callback
+ options="$options callback $CBCP_MSN"
+ else
+ # admin managed callback, it's enabled by default
+ options="$options callback 6"
+ fi
+ else
+ # Disable CBCP
+ options="$options -callback-cbcp"
+ fi
# set CCP protocoll
[ "$CCP" = "off" ] && options="$options noccp"