| Revision 1108,
954 bytes
checked in by daisuke, 16 years ago
(diff) |
|
import initscripts-8.90.6 from internal cvs repository
|
| 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 | |
|---|
| 14 | cd /etc/sysconfig/network-scripts |
|---|
| 15 | . ./network-functions |
|---|
| 16 | |
|---|
| 17 | CONFIG=$1 |
|---|
| 18 | source_config |
|---|
| 19 | |
|---|
| 20 | if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ] |
|---|
| 21 | then |
|---|
| 22 | exit |
|---|
| 23 | fi |
|---|
| 24 | |
|---|
| 25 | if [ ${BROADCAST} != "" ] ; then |
|---|
| 26 | ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP} netmask ${NETMASK} |
|---|
| 27 | broadcast ${BROADCAST} |
|---|
| 28 | else |
|---|
| 29 | ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP} netmask ${NETMASK} |
|---|
| 30 | fi |
|---|
| 31 | |
|---|
| 32 | . /etc/sysconfig/network |
|---|
| 33 | |
|---|
| 34 | if [ "${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 |
|---|
| 39 | fi |
|---|
| 40 | |
|---|
| 41 | /etc/sysconfig/network-scripts/ifup-post $1 |
|---|
Note: See
TracBrowser
for help on using the repository browser.