uawdijnntqw1x1x1
IP : 216.73.216.110
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
.
/
.
/
.
/
..
/
lib
/
.
/
udev
/
net.agent
/
/
#!/bin/sh -e # # run /sbin/{ifup,ifdown} with the --allow=hotplug option. # . /lib/udev/hotplug.functions if [ -z "$INTERFACE" ]; then mesg "Bad net.agent invocation: \$INTERFACE is not set" exit 1 fi check_program() { [ -x $1 ] && return 0 mesg "ERROR: $1 not found. You need to install the ifupdown package." mesg "net.agent $ACTION event for $INTERFACE not handled." exit 1 } wait_for_interface() { local interface=$1 while :; do local state="$(cat /sys/class/net/$interface/operstate 2>/dev/null || true)" if [ "$state" != down ]; then return 0 fi sleep 1 done } net_ifup() { check_program /sbin/ifup # exit if the interface is not configured as allow-hotplug if ! ifquery --allow hotplug -l | grep -q "^${INTERFACE}\$"; then exit 0 fi if [ -d /run/systemd/system ]; then exec systemctl --no-block start $(systemd-escape --template ifup@.service $INTERFACE) fi if ps -C ifup ho args | grep -q "$INTERFACE"; then debug_mesg "Already ifup-ing interface $INTERFACE" exit 0 fi wait_for_interface lo exec ifup --allow=hotplug $INTERFACE } net_ifdown() { check_program /sbin/ifdown # systemd will automatically ifdown the interface on device # removal by binding the instanced service to the network device if [ -d /run/systemd/system ]; then exit 0 fi if ps -C ifdown ho args | grep -q $INTERFACE; then debug_mesg "Already ifdown-ing interface $INTERFACE" exit 0 fi exec ifdown --allow=hotplug $INTERFACE } do_everything() { case "$ACTION" in add) # these interfaces generate hotplug events *after* they are brought up case $INTERFACE in ppp*|ippp*|isdn*|plip*|lo|irda*|ipsec*) exit 0 ;; esac net_ifup ;; remove) # the pppd persist option may have been used, so it should not be killed case $INTERFACE in ppp*) exit 0 ;; esac net_ifdown ;; *) debug_mesg "NET $ACTION event not supported" exit 1 ;; esac } # When udev_log="debug" stdout and stderr are pipes connected to udevd. # They need to be closed or udevd will wait for this process which will # deadlock with udevsettle until the timeout. exec > /dev/null 2> /dev/null do_everything & exit 0
/var/./././../lib/./udev/net.agent