File: ifup-dlci

package info (click to toggle)
frad 0.20-2
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 212 kB
  • ctags: 151
  • sloc: ansic: 1,272; sh: 85; makefile: 54
file content (27 lines) | stat: -rwxr-xr-x 533 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
PATH=/sbin:/usr/sbin:/bin:/usr/bin

CONFIG=$1
. network-functions
source_config

if [ "foo$2" = "fooboot" -a "${ONBOOT}" = "no" ]
then
	exit
fi

ifconfig ${DEVICE} ${IPADDR} pointopoint ${REMIP}
if [ -n "$NETWORK" ]; then
   route add -net ${NETWORK} netmask ${NETMASK} ${DEVICE}
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