Blame | Last modification | View Log | RSS feed
#! /bin/bash. /etc/init.d/functionscd /etc/sysconfig/network-scripts. ./network-functions[ -f ../network ] && . ../networkCONFIG=${1}source_config# On hotplug events, just bring the virtual device up as if it's normal Ethernetif [ -n "$IN_HOTPLUG" ]; thenexec /etc/sysconfig/network-scripts/ifdown-eth ${CONFIG} $2fistop_panu(){kill -TERM $(cat /var/run/pand-${DEVICE}.pid)}stop_nap(){kill -TERM $(cat /var/run/pand-${DEVICE}.pid)/usr/bin/pand -K}stop_gn(){:}case "$ROLE" inPANU)stop_panu;;NAP)stop_nap;;GN)stop_gn;;*)echo Unknown BNEP mode :$ROLE;;esac