OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17200
/
etc
/
init.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/06/2024 02:31:58 PM
rwxr-xr-x
📄
.depend.boot
959 bytes
02/18/2024 07:56:28 PM
rw-r--r--
📄
.depend.start
386 bytes
02/18/2024 07:56:28 PM
rw-r--r--
📄
.depend.stop
411 bytes
02/18/2024 07:56:28 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: networking
Close
#!/bin/sh -e ### BEGIN INIT INFO # Provides: networking ifupdown # Required-Start: mountkernfs $local_fs urandom # Required-Stop: $local_fs # Default-Start: S # Default-Stop: 0 6 # Short-Description: Raise network interfaces. # Description: Prepare /run/network directory, ifstate file and raise network interfaces, or take them down. ### END INIT INFO PATH="/sbin:/bin" RUN_DIR="/run/network" IFSTATE="$RUN_DIR/ifstate" STATEDIR="$RUN_DIR/state" [ -x /sbin/ifup ] || exit 0 [ -x /sbin/ifdown ] || exit 0 . /lib/lsb/init-functions CONFIGURE_INTERFACES=yes EXCLUDE_INTERFACES= VERBOSE=no [ -f /etc/default/networking ] && . /etc/default/networking verbose="" [ "$VERBOSE" = yes ] && verbose=-v process_exclusions() { set -- $EXCLUDE_INTERFACES exclusions="" for d do exclusions="-X $d $exclusions" done echo $exclusions } process_options() { [ -e /etc/network/options ] || return 0 log_warning_msg "/etc/network/options still exists and it will be IGNORED! Please use /etc/sysctl.conf instead." } check_ifstate() { if [ ! -d "$RUN_DIR" ] ; then if ! mkdir -p "$RUN_DIR" ; then log_failure_msg "can't create $RUN_DIR" exit 1 fi if ! chown root:netdev "$RUN_DIR" ; then log_warning_msg "can't chown $RUN_DIR" fi fi if [ ! -r "$IFSTATE" ] ; then if ! :> "$IFSTATE" ; then log_failure_msg "can't initialise $IFSTATE" exit 1 fi fi } check_network_file_systems() { [ -e /proc/mounts ] || return 0 if [ -e /etc/iscsi/iscsi.initramfs ]; then log_warning_msg "not deconfiguring network interfaces: iSCSI root is mounted." exit 0 fi while read DEV MTPT FSTYPE REST; do case $DEV in /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*|curlftpfs*) log_warning_msg "not deconfiguring network interfaces: network devices still mounted." exit 0 ;; esac case $FSTYPE in nfs|nfs4|smbfs|ncp|ncpfs|cifs|coda|ocfs2|gfs|pvfs|pvfs2|fuse.httpfs|fuse.curlftpfs) log_warning_msg "not deconfiguring network interfaces: network file systems still mounted." exit 0 ;; esac done < /proc/mounts } check_network_swap() { [ -e /proc/swaps ] || return 0 while read DEV MTPT FSTYPE REST; do case $DEV in /dev/nbd*|/dev/nd[a-z]*|/dev/etherd/e*) log_warning_msg "not deconfiguring network interfaces: network swap still mounted." exit 0 ;; esac done < /proc/swaps } ifup_hotplug () { if [ -d /sys/class/net ] then ifaces=$(for iface in $(ifquery --list --allow=hotplug) do link=${iface##:*} link=${link##.*} if [ -e "/sys/class/net/$link" ] then # link detection does not work unless we up the link ip link set "$iface" up || true if [ "$(cat /sys/class/net/$link/operstate)" = up ] then echo "$iface" fi fi done) if [ -n "$ifaces" ] then ifup $ifaces "$@" || true fi fi } case "$1" in start) if init_is_upstart; then exit 1 fi process_options check_ifstate if [ "$CONFIGURE_INTERFACES" = no ] then log_action_msg "Not configuring network interfaces, see /etc/default/networking" exit 0 fi set -f exclusions=$(process_exclusions) log_action_begin_msg "Configuring network interfaces" if [ -x /sbin/udevadm ]; then if [ -n "$(ifquery --list --exclude=lo)" ] || [ -n "$(ifquery --list --allow=hotplug)" ]; then udevadm settle || true fi fi if ifup -a $exclusions $verbose && ifup_hotplug $exclusions $verbose then log_action_end_msg $? else log_action_end_msg $? fi ;; stop) if init_is_upstart; then exit 0 fi check_network_file_systems check_network_swap log_action_begin_msg "Deconfiguring network interfaces" if ifdown -a --exclude=lo $verbose; then log_action_end_msg $? else log_action_end_msg $? fi ;; reload) if init_is_upstart; then exit 1 fi process_options log_action_begin_msg "Reloading network interfaces configuration" state=$(ifquery --state) ifdown -a --exclude=lo $verbose || true if ifup --exclude=lo $state $verbose ; then log_action_end_msg $? else log_action_end_msg $? fi ;; force-reload|restart) if init_is_upstart; then exit 1 fi process_options log_warning_msg "Running $0 $1 is deprecated because it may not re-enable some interfaces" log_action_begin_msg "Reconfiguring network interfaces" ifdown -a --exclude=lo $verbose || true set -f exclusions=$(process_exclusions) if ifup -a --exclude=lo $exclusions $verbose && ifup_hotplug $exclusions $verbose then log_action_end_msg $? else log_action_end_msg $? fi ;; *) echo "Usage: /etc/init.d/networking {start|stop|reload|restart|force-reload}" exit 1 ;; esac exit 0 # vim: noet ts=8