403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /etc/kernel/prerm.d/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /etc/kernel/prerm.d/kernel_prerm.d_dkms
#!/bin/bash

# This script is triggered when the kernel (linux-image) package is being
# removed.  We're passed the version of the kernel being removed.
inst_kern=$1

if command -v dkms > /dev/null; then
	dkms status -k "$inst_kern" 2>/dev/null | while IFS=",:/ " read -r name vers _ arch status; do
		[ "$status" = "installed" ] || continue
		echo "dkms: removing: $name $vers ($inst_kern) ($arch)" >&2
		# Compromise on using 'unbuild' to remove the module when a
		# kernel is being removed.  The 'remove' command is too
		# destructive.  The 'uninstall' command leaves built files
		# around that have no other trigger to 'unbuild' them.
		# (Triggering 'unbuild' on kernel header removal would not be
		# a good idea because that would also cause the module to be
		# uninstalled for the kernel, even though only the headers are
		# being removed.)
		dkms unbuild -m "$name" -v "$vers" -k "$inst_kern" -a "$arch"
	done
fi

rmdir --ignore-fail-on-non-empty \
	"/lib/modules/$inst_kern/updates/dkms" \
	"/lib/modules/$inst_kern/updates" 2>/dev/null

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit