Dre4m Shell
Server IP : 127.0.0.2  /  Your IP : 3.23.59.191
Web Server : Apache/2.4.18 (Ubuntu)
System :
User : www-data ( )
PHP Version : 7.0.33-0ubuntu0.16.04.16
Disable Function : disk_free_space,disk_total_space,diskfreespace,dl,exec,fpaththru,getmyuid,getmypid,highlight_file,ignore_user_abord,leak,listen,link,opcache_get_configuration,opcache_get_status,passthru,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,php_uname,phpinfo,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,pclose,popen,proc_open,proc_close,proc_get_status,proc_nice,proc_terminate,shell_exec,source,show_source,system,virtual
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/init/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /etc/init/cloud-init-container.conf.dpkg-new
# in a lxc container, events for network interfaces do not
# get created or may be missed.  This helps cloud-init-nonet along
# by emitting those events if they have not been emitted.

start on container
stop on static-network-up
task

emits net-device-added

console output

script
   # if we are inside a container, then we may have to emit the ifup
   # events for 'auto' network devices.
   set -f

   # from /etc/network/if-up.d/upstart
   MARK_DEV_PREFIX="/run/network/ifup."
   MARK_STATIC_NETWORK_EMITTED="/run/network/static-network-up-emitted"
   # if the all static network interfaces are already up, nothing to do
   [ -f "$MARK_STATIC_NETWORK_EMITTED" ] && exit 0

   # ifquery will exit failure if there is no /run/network directory.
   # normally that would get created by one of network-interface.conf
   # or networking.conf.  But, it is possible that we're running
   # before either of those have.
   mkdir -p /run/network

   # get list of all 'auto' interfaces. if there are none, nothing to do.
   auto_list=$(ifquery --list --allow auto 2>/dev/null) || :
   [ -z "$auto_list" ] && exit 0
   set -- ${auto_list}
   [ "$*" = "lo" ] && exit 0

   # we only want to emit for interfaces that do not exist, so filter
   # out anything that does not exist.
   for iface in "$@"; do
      [ "$iface" = "lo" ] && continue
      # skip interfaces that are already up
      [ -f "${MARK_DEV_PREFIX}${iface}" ] && continue

      if [ -d /sys/net ]; then
         # if /sys is mounted, and there is no /sys/net/iface, then no device
         [ -e "/sys/net/$iface" ] && continue
      else
         # sys wasn't mounted, so just check via 'ifconfig'
         ifconfig "$iface" >/dev/null 2>&1 || continue
      fi
      initctl emit --no-wait net-device-added "INTERFACE=$iface" &&
         emitted="$emitted $iface" ||
         echo "warn: ${UPSTART_JOB} failed to emit net-device-added INTERFACE=$iface"
   done

   [ -z "${emitted# }" ] ||
      echo "${UPSTART_JOB}: emitted ifup for ${emitted# }"
end script

Anon7 - 2022
AnonSec Team