]> git.pld-linux.org Git - projects/rc-scripts.git/blame - lib/ifup-plusb
fix 12 year old bug in pidofproc
[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#
a6c22d3d
AM
11#
12PATH=/sbin:/usr/sbin:/bin:/usr/bin
13
f67ce454 14cd /lib/rc-scripts
a6c22d3d
AM
15. /etc/sysconfig/network
16. /etc/rc.d/init.d/functions
f67ce454 17. /lib/rc-scripts/functions.network
a6c22d3d
AM
18
19CONFIG=$1
20source_config
21
22if [ "foo$2" = "fooboot" ] && is_no "${ONBOOT}"; then
5e6dfc29 23 exit
a6c22d3d
AM
24fi
25
26# set all major variables
27setup_ip_param
28
29if is_yes "$IPV4_NETWORKING"; then
5e6dfc29
JR
30 if [ -n "$IP4ADDR" ]; then
31 ip -4 addr add ${IP4ADDR} peer ${REMIP} dev ${DEVICE}
32 fi
a6c22d3d
AM
33fi
34
35if is_yes "$IPV6_NETWORKING"; then
5e6dfc29
JR
36 if [ -n "$IP6ADDR" ]; then
37 ip -6 addr add ${IP6ADDR} dev ${DEVICE}
38 fi
a6c22d3d
AM
39fi
40
41ip link set dev ${DEVICE} up
42
43. /etc/sysconfig/network
44
45# IPv4/6 gateways and default routes
46setup_ip_gw_ro
47
f67ce454 48/lib/rc-scripts/ifup-post $1
This page took 0.139467 seconds and 4 git commands to generate.