]> git.pld-linux.org Git - projects/rc-scripts.git/blame - sysconfig/network-scripts/ifup-plusb
- add support for running inside vservers, the diff may seem huge but it's
[projects/rc-scripts.git] / sysconfig / network-scripts / ifup-plusb
CommitLineData
a6c22d3d
AM
1#!/bin/sh
2#
3# The plusb network driver is a USB host-host cable based on the Prolific
4# chip. It works a lot like the plip driver.
5#
6# To get the plusb module to load automatically at boot, you will need to
7# add the following lines to /etc/conf.modules:
8#
9# alias plusb0 plusb
10#
ec8b15cb 11# $Id$
a6c22d3d
AM
12#
13PATH=/sbin:/usr/sbin:/bin:/usr/bin
14
15cd /etc/sysconfig/network-scripts
16. /etc/sysconfig/network
17. /etc/rc.d/init.d/functions
18. /etc/sysconfig/network-scripts/functions.network
19
20CONFIG=$1
21source_config
22
23if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then
74a7f2e4 24 exit
a6c22d3d
AM
25fi
26
27# set all major variables
28setup_ip_param
29
30if is_yes "$IPV4_NETWORKING"; then
74a7f2e4 31 if [ -n "$IP4ADDR" ]; then
32 ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE}
33 fi
a6c22d3d
AM
34fi
35
36if is_yes "$IPV6_NETWORKING"; then
74a7f2e4 37 if [ -n "$IP6ADDR" ]; then
38 ip -6 addr add ${IP6ADDR} dev ${DEVICE}
39 fi
a6c22d3d
AM
40fi
41
42ip link set dev ${DEVICE} up
43
44. /etc/sysconfig/network
45
46# IPv4/6 gateways and default routes
47setup_ip_gw_ro
48
49/etc/sysconfig/network-scripts/ifup-post $1
50
51# This must be last line !
31abb21f 52# vi:syntax=sh:ts=8:sw=4
This page took 0.035467 seconds and 4 git commands to generate.