]> git.pld-linux.org Git - projects/rc-scripts.git/blame - lib/ifup-plusb
utf8 to rule the world
[projects/rc-scripts.git] / lib / ifup-plusb
CommitLineData
a6c22d3d
AM
1#!/bin/sh
2#
3# The plusb network driver is a USB host-host cable based on the Prolific
5e6dfc29 4# chip. It works a lot like the plip driver.
a6c22d3d
AM
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
f67ce454 15cd /lib/rc-scripts
a6c22d3d
AM
16. /etc/sysconfig/network
17. /etc/rc.d/init.d/functions
f67ce454 18. /lib/rc-scripts/functions.network
a6c22d3d
AM
19
20CONFIG=$1
21source_config
22
23if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then
5e6dfc29 24 exit
a6c22d3d
AM
25fi
26
27# set all major variables
28setup_ip_param
29
30if is_yes "$IPV4_NETWORKING"; then
5e6dfc29
JR
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
5e6dfc29
JR
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
f67ce454 49/lib/rc-scripts/ifup-post $1
This page took 0.069446 seconds and 4 git commands to generate.