source: projects/initscripts/tags/initscripts-8.91.0/sysconfig/network-scripts/ifup-plusb @ 2576

Revision 2576, 983 bytes checked in by daisuke, 13 years ago (diff)

tagging as initscripts-8.91.0

Line 
1#!/bin/sh
2#
3# /etc/sysconfig/network-scripts/ifup-plusb
4#
5# the plusb network driver is a USB host-host cable based on the Prolific
6# chip. It works a lot like the plip driver. 
7#
8# To get the plusb module to load automatically at boot, you will need to
9# add the following lines to /etc/conf.modules:
10#
11# alias plusb0 plusb
12#
13
14cd /etc/sysconfig/network-scripts
15. /etc/sysconfig/network-scripts/network-functions
16
17CONFIG=$1
18source_config
19
20if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
21then
22        exit
23fi
24
25if [ ${BROADCAST} != ""  ]  ; then
26    ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP} netmask ${NETMASK}
27broadcast ${BROADCAST}
28else
29    ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP} netmask ${NETMASK} 
30fi
31
32. /etc/sysconfig/network
33
34if [ "${GATEWAY}" != "" ]; then
35        if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
36                # set up default gateway
37                route add default gw ${GATEWAY} ${METRIC:+metric $METRIC}
38        fi
39fi
40
41/etc/sysconfig/network-scripts/ifup-post $1
Note: See TracBrowser for help on using the repository browser.