Shadow-Here


Server : Apache
System : Linux methusalix2 3.16.0-11-amd64 #1 SMP Debian 3.16.84-1 (2020-06-09) x86_64
User : hios ( 1437)
PHP Version : 5.6.40-0+deb8u12
Disable Function : proc_close,proc_open,dl,shell_exec,passthru
Directory :  /lib/udev/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :
Current File : //lib/udev/logger.agent
#!/bin/sh -e
#
# log the event to a file
#

cd /lib/udev/
. ./hotplug.functions

# provide env-like output when the real thing is not available
if [ ! -x /usr/bin/env ]; then
    env() {
        # bash prepends "declare -x " at the beginning of each line
        export -p | sed -e 's/^\(declare -x\|export\) //'
    }
fi

# writes a copy of the current hotplug event to stdout
log_to_stdout()
{
    {
	echo "HOTPLUG_TIME='$(date)'"
	env
	echo ''
    } | egrep -v "^'$|^(_|PATH|PWD|PPID|SHLVL|HOME|IFS|OPTIND|PS[1234])="
}

[ "$EVENTS_LOG" ] || EVENTS_LOG='/dev/hotplug.log'

log_to_stdout >> $EVENTS_LOG

exit 0


Samx