OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17210
/
etc
/
init.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
๐
..
-
10/02/2024 07:52:55 PM
rwxr-xr-x
๐
.depend.boot
959 bytes
10/02/2024 07:50:50 PM
rw-r--r--
๐
.depend.start
386 bytes
10/02/2024 07:50:50 PM
rw-r--r--
๐
.depend.stop
411 bytes
10/02/2024 07:50:50 PM
rw-r--r--
๐
README
2.37 KB
01/19/2016 06:33:50 PM
rw-r--r--
๐
apparmor
6.08 KB
03/03/2017 10:52:31 PM
rwxr-xr-x
๐
bootmisc.sh
1.25 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
cgmanager
3.48 KB
09/14/2015 10:15:39 PM
rwxr-xr-x
๐
cgproxy
3.28 KB
09/14/2015 10:15:39 PM
rwxr-xr-x
๐
checkfs.sh
3.72 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
checkroot-bootclean.sh
1.07 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
checkroot.sh
9.13 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
console-setup
1.31 KB
04/04/2016 05:41:49 PM
rwxr-xr-x
๐
cron
2.98 KB
05/10/2022 10:15:22 PM
rwxr-xr-x
๐
dbus
2.75 KB
10/07/2019 11:29:04 AM
rwxr-xr-x
๐
halt
1.3 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
hostname.sh
1.39 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
hwclock.sh
3.72 KB
03/12/2016 03:14:57 PM
rwxr-xr-x
๐
keyboard-setup
1.76 KB
04/04/2016 05:41:49 PM
rwxr-xr-x
๐
killprocs
1.27 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
kmod
2.04 KB
11/12/2018 09:55:37 PM
rwxr-xr-x
๐
mountall-bootclean.sh
703 bytes
01/19/2016 06:33:50 PM
rwxr-xr-x
๐
mountall.sh
2.25 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
mountdevsubfs.sh
1.43 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
mountkernfs.sh
1.53 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
mountnfs-bootclean.sh
711 bytes
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
mountnfs.sh
2.4 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
networking
4.66 KB
11/30/2016 05:16:19 PM
rwxr-xr-x
๐
ondemand
1.54 KB
10/16/2015 02:45:22 AM
rwxr-xr-x
๐
pppd-dns
612 bytes
01/27/2016 04:19:52 PM
rwxr-xr-x
๐
procps
1.16 KB
09/06/2015 05:30:20 AM
rwxr-xr-x
๐
rc
6.22 KB
01/19/2016 06:33:50 PM
rwxr-xr-x
๐
rc.local
820 bytes
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
rcS
117 bytes
01/19/2016 06:33:50 PM
rwxr-xr-x
๐
reboot
661 bytes
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
resolvconf
4.05 KB
11/29/2017 06:26:46 PM
rwxr-xr-x
๐
rsyslog
2.73 KB
02/03/2016 10:54:29 AM
rwxr-xr-x
๐
sendsigs
3.83 KB
01/19/2016 06:33:50 PM
rwxr-xr-x
๐
single
597 bytes
01/19/2016 06:33:50 PM
rwxr-xr-x
๐
skeleton
1.06 KB
01/19/2016 06:33:51 PM
rw-r--r--
๐
ssh
3.98 KB
05/13/2020 02:12:28 PM
rwxr-xr-x
๐
ubuntu-fan
1.2 KB
10/28/2016 03:24:40 PM
rwxr-xr-x
๐
udev
5.94 KB
04/02/2021 02:39:40 AM
rwxr-xr-x
๐
umountfs
2.67 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
umountnfs.sh
2.15 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
umountroot
1.83 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
๐
urandom
3.04 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
Editing: resolvconf
Close
#!/bin/sh # ### BEGIN INIT INFO # Provides: resolvconf # Required-Start: $local_fs # Required-Stop: $local_fs # X-Start-Before: networking ifupdown # Default-Start: S # Default-Stop: 0 6 # Short-Description: Nameserver information manager # Description: This service manages the list of nameserver addresses # used by the libc resolver and name service caches ### END INIT INFO # # This file is part of the resolvconf package. # # We really need "X-Stop-Before: networking ifupdown" too because # terminal ifdowns shouldn't update resolv.conf; # however there is unfortunately no such thing as "X-Stop-Before". # # This file is not used in Ubuntu. # # Don't use set -e; check return status instead. [ -x /sbin/resolvconf ] || exit 0 PATH=/sbin:/bin RUN_DIR=/run/resolvconf ENABLE_UPDATES_FLAGFILE="${RUN_DIR}/enable-updates" POSTPONED_UPDATE_FLAGFILE="${RUN_DIR}/postponed-update" . /lib/lsb/init-functions # Abort if Upstart is in use, as per Policy ยง9.11.1. case "$1" in start|restart|force-reload) init_is_upstart && exit 1 ;; stop) init_is_upstart && exit 0 ;; esac # $1 EXITSTATUS # [$2 MESSAGE] log_action_end_msg_and_exit() { log_action_end_msg "$1" ${2:+"$2"} exit $1 } create_runtime_directories() { umask 022 if [ ! -d "$RUN_DIR" ] ; then [ -L "$RUN_DIR" ] || log_action_end_msg_and_exit 1 "$RUN_DIR is neither a directory nor a symbolic link" # It's a symlink. Its target is not a dir. { RUN_CANONICALDIR="$(readlink -f "$RUN_DIR")" && [ "$RUN_CANONICALDIR" ] ; } || log_action_end_msg_and_exit 1 "Canonical path of the run directory could not be determined" # Create directory at the target mkdir "$RUN_CANONICALDIR" || log_action_end_msg_and_exit 1 "Error creating directory $RUN_CANONICALDIR" fi # The resolvconf run directory now exists. if [ ! -d "${RUN_DIR}/interface" ] ; then mkdir "${RUN_DIR}/interface" || log_action_end_msg_and_exit 1 "Error creating directory ${RUN_DIR}/interface" fi # The interface directory now exists. We are done. return } wipe_runtime_directories() { # Delete files in the resolvconf run directory (target) but not the directory itself [ -d "$RUN_DIR" ] || return rm -f "$RUN_DIR"/resolv.conf rm -f "$ENABLE_UPDATES_FLAGFILE" rm -f "$POSTPONED_UPDATE_FLAGFILE" rm -rf "${RUN_DIR}/interface/*" return } case "$1" in start) # The "start" method should only be used at boot time. # Don't run this on package upgrade, for example. log_action_begin_msg "Setting up resolvconf" # Wipe runtime directories in case they aren't on a tmpfs wipe_runtime_directories # Create runtime directories in case they are on a tmpfs create_runtime_directories # Request a postponed update (needed in case the base file has content). :> "$POSTPONED_UPDATE_FLAGFILE" || log_action_end_msg_and_exit 1 "failed requesting update" # Enable updates and perform the postponed update. resolvconf --enable-updates || log_action_end_msg_and_exit 1 "failed to enable updates" log_action_end_msg_and_exit 0 ;; stop) # The "stop" method should only be used at shutdown time. log_action_begin_msg "Stopping resolvconf" resolvconf --disable-updates || log_action_end_msg_and_exit 1 "failed to disable updates" log_action_end_msg_and_exit 0 ;; restart) log_action_begin_msg "Restarting resolvconf" resolvconf --enable-updates || log_action_end_msg_and_exit 1 "failed to enable updates" log_action_end_msg_and_exit 0 ;; reload|force-reload) resolvconf -u || log_action_end_msg_and_exit 1 "failed to update" exit 0 ;; enable-updates) resolvconf --enable-updates || log_action_end_msg_and_exit 1 "failed to enable updates" exit 0 ;; disable-updates) resolvconf --disable-updates || log_action_end_msg_and_exit 1 "failed to disable updates" exit 0 ;; status) if resolvconf --updates-are-enabled ; then log_success_msg "resolvconf updates are enabled" else log_failure_msg "resolvconf updates are disabled" fi exit 0 ;; *) echo "Usage: /etc/init.d/resolvconf {start|stop|restart|reload|force-reload|enable-updates|disable-updates|status}" >&2 exit 3 ;; esac # Don't reach here exit 99