aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2001-01-29 22:17:41 +0000
committerBill Nottingham <notting@redhat.com>2001-01-29 22:17:41 +0000
commitef4bdd963596fc10060be026557ae89234ea3700 (patch)
treebfd3fefddd7585dc00c0ba470524d71431a156e7 /sysconfig/network-scripts
parent68b78e481f1dc88625fd3ceed528924648c67bbe (diff)
downloadinitscripts-ef4bdd963596fc10060be026557ae89234ea3700.tar
initscripts-ef4bdd963596fc10060be026557ae89234ea3700.tar.gz
initscripts-ef4bdd963596fc10060be026557ae89234ea3700.tar.bz2
initscripts-ef4bdd963596fc10060be026557ae89234ea3700.tar.xz
initscripts-ef4bdd963596fc10060be026557ae89234ea3700.zip
add plusb support (#18892)
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-plusb42
1 files changed, 42 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-plusb b/sysconfig/network-scripts/ifup-plusb
new file mode 100755
index 00000000..2e87b11a
--- /dev/null
+++ b/sysconfig/network-scripts/ifup-plusb
@@ -0,0 +1,42 @@
+#!/bin/sh
+#
+# /etc/sysconfig/network-scripts/ifup-plusb
+#
+# the plusb network driver is a USB host-host cable based on the Prolific
+# chip. It works a lot like the plip driver.
+#
+# To get the plusb module to load automatically at boot, you will need to
+# add the following lines to /etc/conf.modules:
+#
+# alias plusb0 plusb
+#
+PATH=/sbin:/usr/sbin:/bin:/usr/bin
+
+cd /etc/sysconfig/network-scripts
+. network-functions
+
+CONFIG=$1
+source_config
+
+if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
+then
+ exit
+fi
+
+if [ ${BROADCAST} != "" ] ; then
+ ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP} netmask ${NETMASK}
+broadcast ${BROADCAST}
+else
+ ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP} netmask ${NETMASK}
+fi
+
+. /etc/sysconfig/network
+
+if [ "${GATEWAY}" != "" ]; then
+ if [ "${GATEWAYDEV}" = "" -o "${GATEWAYDEV}" = "${DEVICE}" ]; then
+ # set up default gateway
+ route add default gw ${GATEWAY}
+ fi
+fi
+
+/etc/sysconfig/network-scripts/ifup-post $1