Gestionnaire de fichiers - Editer - /home/wwgoat/public_html/blog/abrt-action-save-kernel-data.tar
Arrière
usr/bin/abrt-action-save-kernel-data 0000755 00000002414 14720736353 0013412 0 ustar 00 #!/bin/bash # # Save pkg_{name, arch, version, release} for kernel oopses. # # These files are required by reporter-ureporter (mandatory # in uReport). # if [ ! -f kernel ]; then echo "File 'kernel' containing kernel version not found in current directory" exit 1 fi echo "Looking for kernel package" kernel_version="$( sed 's/ .*//' kernel )" package="$( rpm -qf "/boot/vmlinuz-$kernel_version" )" if [ $? != 0 ]; then echo "Can't find kernel package corresponding to '$kernel_version'" echo "Can't record package version data (pkg_version, pkg_release, ...)." exit 1 fi echo "Kernel package $package found" rpm -q --qf "%{name}\n" "$package" > pkg_name rpm -q --qf "%{arch}\n" "$package" > pkg_arch rpm -q --qf "%{version}\n" "$package" > pkg_version rpm -q --qf "%{release}\n" "$package" > pkg_release epoch="$( rpm -q --qf "%{epoch}" "$package" )" test "$epoch" = "(none)" && epoch=0 echo "$epoch" > pkg_epoch rpm -q --qf "%{vendor}\n" "$package" > pkg_vendor FINGERPRINT=$(rpm -q --qf "%|SIGGPG?{%{SIGGPG:pgpsig}}:{%{SIGPGP:pgpsig}}|" "$package" 2>/dev/null | tail -1) if [ -n "$FINGERPRINT" -a "_(none)" != "_$FINGERPRINT" ]; then echo $FINGERPRINT | sed 's/.*Key ID \(....\)\(....\)\(....\)\(....\)$/\U\1 \U\2 \U\3 \U\4/' > pkg_fingerprint fi
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0 |
proxy
|
phpinfo
|
Réglages