OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17200
/
etc
/
rc0.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/06/2024 02:31:58 PM
rwxr-xr-x
📄
K01cgmanager
3.48 KB
09/14/2015 10:15:39 PM
rwxr-xr-x
📄
K01cgproxy
3.28 KB
09/14/2015 10:15:39 PM
rwxr-xr-x
📄
K01resolvconf
4.05 KB
11/29/2017 06:26:46 PM
rwxr-xr-x
📄
K01ubuntu-fan
1.2 KB
10/28/2016 03:24:40 PM
rwxr-xr-x
📄
K01urandom
3.04 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
K02sendsigs
3.83 KB
01/19/2016 06:33:50 PM
rwxr-xr-x
📄
K03rsyslog
2.73 KB
02/03/2016 10:54:29 AM
rwxr-xr-x
📄
K04hwclock.sh
3.72 KB
03/12/2016 03:14:57 PM
rwxr-xr-x
📄
K04umountnfs.sh
2.15 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
K05networking
4.66 KB
11/30/2016 05:16:19 PM
rwxr-xr-x
📄
K06umountfs
2.67 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
K07umountroot
1.83 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
K08halt
1.3 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
README
353 bytes
01/19/2016 06:33:50 PM
rw-r--r--
Editing: K08halt
Close
#! /bin/sh ### BEGIN INIT INFO # Provides: halt # Required-Start: # Required-Stop: # Default-Start: # Default-Stop: 0 # Short-Description: Execute the halt command. # Description: ### END INIT INFO NETDOWN=yes PATH=/sbin:/usr/sbin:/bin:/usr/bin [ -f /etc/default/halt ] && . /etc/default/halt . /lib/lsb/init-functions do_stop () { if [ "$INIT_HALT" = "" ] then case "$HALT" in [Pp]*) INIT_HALT=POWEROFF ;; [Hh]*) INIT_HALT=HALT ;; *) INIT_HALT=POWEROFF ;; esac fi # See if we need to cut the power. if [ "$INIT_HALT" = "POWEROFF" ] && [ -x /etc/init.d/ups-monitor ] then /etc/init.d/ups-monitor poweroff fi # Don't shut down drives if we're using RAID. hddown="-h" if grep -qs '^md.*active' /proc/mdstat then hddown="" fi # If INIT_HALT=HALT don't poweroff. poweroff="-p" if [ "$INIT_HALT" = "HALT" ] then poweroff="" fi # Make it possible to not shut down network interfaces, # needed to use wake-on-lan netdown="-i" if [ "$NETDOWN" = "no" ]; then netdown="" fi log_action_msg "Will now halt" halt -d -f $netdown $poweroff $hddown } case "$1" in start|status) # No-op ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) do_stop ;; *) echo "Usage: $0 start|stop" >&2 exit 3 ;; esac :