AnonSec Shell
Server IP : 172.67.157.199  /  Your IP : 3.142.196.29   [ Reverse IP ]
Web Server : Apache
System : Linux b70eb322-3aee-0c53-7c82-0db91281f2c6.secureserver.net 6.1.90-1.el9.elrepo.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 2 12:09:22 EDT 2024 x86_64
User : root ( 0)
PHP Version : 8.0.30.2
Disable Function : NONE
Domains : 0 Domains
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /etc/init.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /etc/init.d/sysctl
#!/sbin/openrc-run

depend()
{
	after clock
	before bootmisc logger
	keyword -prefix -systemd-nspawn -vserver
}

start()
{
	local quiet retval=0 status
	ebegin "Configuring kernel parameters"

	yesno $rc_verbose || quiet=-q

	eindent

	for f in /lib/sysctl.d/*.conf \
		/usr/lib/sysctl.d/*.conf; do

		if  [ -f /etc/sysctl.d/"${f##*/}" ]; then
			veinfo "Ignoring $f due to /etc/sysctl.d/${f##*/}"
			continue
		fi

		if [ -f /run/sysctl.d/"${f##*/}" ]; then
			veinfo "Ignoring $f due to /run/sysctl.d/${f##*/}"
			continue
		fi
	
		if [ -f "$f" ]; then
			vebegin "applying $f"
			sysctl $quiet -p "$f"
			status=$?
			if [ $status -gt 0 ]; then
				# Don't change retval= since we expect some package/distro provided
				# sysctl configurations to break, so just warn when the user wants
				# verbose messages
				vewarn "Unable to configure kernel parameters from $f"
			fi
		fi
	done

	for f in /etc/sysctl.d/*.conf; do

		if [ -f /run/sysctl.d/"${f##*/}" ]; then
			veinfo "Ignoring $f due to /run/sysctl.d/${f##*/}"
			continue
		fi

		if [ -f "$f" ]; then
			vebegin "applying $f"
			sysctl $quiet -p "$f"
			status=$?
			if [ $status -gt 0 ]; then
				retval=$(( $retval + $status ))
				eerror "Unable to configure kernel parameters from $f"
			fi
		fi
	done

	if [ -f /etc/sysctl.conf ]; then
		vebegin "applying /etc/sysctl.conf"
		sysctl $quiet -p /etc/sysctl.conf
		status=$?
		if [ $status -gt 0 ]; then
			retval=$(( $retval + $status ))
			eerror "Unable to configure kernel parameters from /etc/sysctl.conf"
		fi
	fi

	for f in /run/sysctl.d/*.conf; do
		if [ -f "$f" ]; then
			vebegin "applying $f"
			sysctl $quiet -p "$f"
			status=$?
			if [ $status -gt 0 ]; then
				retval=$(( $retval + $status ))
				eerror "Unable to configure kernel parameters from $f"
			fi
		fi
	done
	eoutdent

	eend $retval
}

Anon7 - 2022
AnonSec Team