source: projects/initscripts/tags/initscripts-8.91.0/sysconfig/network-scripts/ifup-bnep @ 2576

Revision 2576, 912 bytes checked in by daisuke, 13 years ago (diff)

tagging as initscripts-8.91.0

Line 
1#! /bin/bash
2
3. /etc/init.d/functions
4
5cd /etc/sysconfig/network-scripts
6. /etc/sysconfig/network-scripts/network-functions
7
8[ -f /etc/sysconfig/network ] && . /etc/sysconfig/network
9
10CONFIG=${1}
11
12source_config
13
14# On hotplug events, just bring the virtual device up as if it's normal Ethernet
15if [ -n "$IN_HOTPLUG" ]; then
16        exec sh -x /etc/sysconfig/network-scripts/ifup-eth ${CONFIG} $2
17fi
18
19start_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
31start_nap()
32{
33        :
34}
35
36start_gn()
37{
38        :
39}
40
41case "$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                ;;
54esac
55
Note: See TracBrowser for help on using the repository browser.