Subversion Repositories configs

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3 - 1
#! /bin/bash
2
 
3
. /etc/init.d/functions
4
 
5
cd /etc/sysconfig/network-scripts
6
. ./network-functions
7
 
8
[ -f ../network ] && . ../network
9
 
10
CONFIG=${1}
11
 
12
source_config
13
 
14
# On hotplug events, just bring the virtual device up as if it's normal Ethernet
15
if [ -n "$IN_HOTPLUG" ]; then
16
	exec sh -x /etc/sysconfig/network-scripts/ifup-eth ${CONFIG} $2
17
fi
18
 
19
start_panu()
20
{
21
	PANDARGS="--persist --pidfile=/var/run/pand-${DEVICE}.pid --ethernet=${DEVICE} --autozap"
22
	[ "${CACHE}" != "no" -a "${CACHE}" != "NO" ] && PANDARGS="${PANDARGS} --cache"
23
	if [ "${REMOTEBDADDR}" = "" ]; then
24
		PANDARGS="${PANDARGS} --search"
25
	else
26
		PANDARGS="${PANDARGS} --connect ${REMOTEBDADDR}"
27
	fi
28
	/usr/bin/pand ${PANDARGS}
29
}
30
 
31
start_nap()
32
{
33
	:
34
}
35
 
36
start_gn()
37
{
38
	:
39
}
40
 
41
case "$ROLE" in
42
	PANU)
43
		start_panu
44
		;;
45
	NAP)
46
		start_nap
47
		;;
48
	GN)
49
		start_gn
50
		;;
51
	*)
52
		echo Unknown BNEP mode :$ROLE
53
		;;
54
esac
55