OXIESEC PANEL
- Current Dir:
/
/
snap
/
core
/
17200
/
etc
/
rcS.d
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/06/2024 02:31:58 PM
rwxr-xr-x
📄
README
447 bytes
01/19/2016 06:33:50 PM
rw-r--r--
📄
S01console-setup
1.31 KB
04/04/2016 05:41:49 PM
rwxr-xr-x
📄
S02apparmor
6.08 KB
03/03/2017 10:52:31 PM
rwxr-xr-x
📄
S02hostname.sh
1.39 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S02mountkernfs.sh
1.53 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S02pppd-dns
612 bytes
01/27/2016 04:19:52 PM
rwxr-xr-x
📄
S02resolvconf
4.05 KB
11/29/2017 06:26:46 PM
rwxr-xr-x
📄
S03udev
5.94 KB
04/02/2021 02:39:40 AM
rwxr-xr-x
📄
S04keyboard-setup
1.76 KB
04/04/2016 05:41:49 PM
rwxr-xr-x
📄
S05mountdevsubfs.sh
1.43 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S05procps
1.16 KB
09/06/2015 05:30:20 AM
rwxr-xr-x
📄
S06hwclock.sh
3.72 KB
03/12/2016 03:14:57 PM
rwxr-xr-x
📄
S07checkroot.sh
9.13 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S08checkfs.sh
3.72 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S09checkroot-bootclean.sh
1.07 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S09kmod
2.04 KB
11/12/2018 09:55:37 PM
rwxr-xr-x
📄
S09urandom
3.04 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S10mountall.sh
2.25 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S10networking
4.66 KB
11/30/2016 05:16:19 PM
rwxr-xr-x
📄
S11mountall-bootclean.sh
703 bytes
01/19/2016 06:33:50 PM
rwxr-xr-x
📄
S11mountnfs.sh
2.4 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S12mountnfs-bootclean.sh
711 bytes
01/19/2016 06:33:51 PM
rwxr-xr-x
📄
S13bootmisc.sh
1.25 KB
01/19/2016 06:33:51 PM
rwxr-xr-x
Editing: S02hostname.sh
Close
#! /bin/sh ### BEGIN INIT INFO # Provides: hostname # Required-Start: # Required-Stop: # Should-Start: glibc # Default-Start: S # Default-Stop: # Short-Description: Set hostname based on /etc/hostname # Description: Read the machines hostname from /etc/hostname, and # update the kernel value with this value. If # /etc/hostname is empty, the current kernel value # for hostname is used. If the kernel value is # empty, the value 'localhost' is used. ### END INIT INFO PATH=/sbin:/bin . /lib/init/vars.sh . /lib/lsb/init-functions do_start () { [ -f /etc/hostname ] && HOSTNAME="$(cat /etc/hostname)" # Keep current name if /etc/hostname is missing. [ -z "$HOSTNAME" ] && HOSTNAME="$(hostname)" # And set it to 'localhost' if no setting was found [ -z "$HOSTNAME" ] && HOSTNAME=localhost [ "$VERBOSE" != no ] && log_action_begin_msg "Setting hostname to '$HOSTNAME'" hostname "$HOSTNAME" ES=$? [ "$VERBOSE" != no ] && log_action_end_msg $ES exit $ES } do_status () { HOSTNAME=$(hostname) if [ "$HOSTNAME" ] ; then return 0 else return 4 fi } case "$1" in start|"") do_start ;; restart|reload|force-reload) echo "Error: argument '$1' not supported" >&2 exit 3 ;; stop) # No-op ;; status) do_status exit $? ;; *) echo "Usage: hostname.sh [start|stop]" >&2 exit 3 ;; esac :