MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/etc/sysconfig/network-scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/etc/sysconfig/network-scripts/ifdown-bnep
#! /bin/bash

. /etc/init.d/functions

cd /etc/sysconfig/network-scripts
. network-functions

[ -f ../network ] && . ../network

CONFIG=${1}

source_config

# On hotplug events, just bring the virtual device up as if it's normal Ethernet
if [ -n "$IN_HOTPLUG" ]; then
	exec /etc/sysconfig/network-scripts/ifdown-eth ${CONFIG} $2
fi

stop_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" in
	PANU)
		stop_panu
		;;
	NAP)
		stop_nap
		;;
	GN)
		stop_gn
		;;
	*)
		echo Unknown BNEP mode :$ROLE
		;;
esac


Anon7 - 2021