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-sl
#!/bin/bash

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

CONFIG=$1
source_config

# signals ifup-sl not to persist
rm -f /var/run/sl-$DEVICE.dev

PID=`pidof dip-$DEVICE`
#
# The proctitle for connected dip daemons is actually "-dip (ipaddr)"
#	with ipaddr == local on dial-out,  remote on dial-in
# Grab the PID of connected dial-out daemon.
#
if [ -z "$PID" ]; then
  PID=`pidof -- -dip\ \($IPADDR\)`
fi
if [ -z "$PID" ]; then
  exit 1
fi

kill $PID > /dev/null 2>&1
if [ ! -d /proc/$PID ]; then
  /etc/sysconfig/network-scripts/ifdown-post $1
  exit 0
fi
sleep 2
if [ ! -d /proc/$PID ]; then
  /etc/sysconfig/network-scripts/ifdown-post $1
  exit 0
fi

kill -KILL $PID > /dev/null 2>&1
if [ -d /proc/$PID ]; then
  logger -p daemon.info -t ifdown-ppp "ifdown-ppp unable to kill pppd-$DEVICE" &
else
  /etc/sysconfig/network-scripts/ifdown-post $1
fi
[ ! -d /proc/$PID ] && exit 0

exit 1


Anon7 - 2021