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

Revision 2576, 678 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 /etc/sysconfig/network-scripts/ifdown-eth ${CONFIG} $2
17fi
18
19stop_panu()
20{
21        kill -TERM `cat /var/run/pand-${DEVICE}.pid`
22}
23
24stop_nap()
25{
26        kill -TERM `cat /var/run/pand-${DEVICE}.pid`
27        /usr/bin/pand -K
28}
29
30stop_gn()
31{
32        :
33}
34
35case "$ROLE" in
36        PANU)
37                stop_panu
38                ;;
39        NAP)
40                stop_nap
41                ;;
42        GN)
43                stop_gn
44                ;;
45        *)
46                echo Unknown BNEP mode :$ROLE
47                ;;
48esac
49
Note: See TracBrowser for help on using the repository browser.