Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- system-report.orig 2010-10-15 23:51:21.000000000 +0600
- +++ system-report.new 2016-02-27 23:57:24.000000000 +0500
- @@ -173,7 +173,9 @@
- local path=
- for path in /sys/module/*; do
- [ "$path" != "/sys/module/*" ] || break
- - module_sysinfo "$path"
- +# * we dont want see warnings here (change by <shadowsbrother@gmail.com>)
- + module_sysinfo "$path" 2>/dev/null
- +# *
- done >> "$r"
- }
- @@ -215,6 +217,9 @@
- timestamp "$r"
- printf "# 'dmesg' output\n\n" >> "$r"
- dmesg >>"$r" 2>&1 || return
- +# * cut uuid from dmesg (change by <shadowsbrother@gmail.com>)
- + sed -i 's/ root=UUID=\(.*[a-b0-9-]\) / root=UUID= /' hardware/sysreport.dmesg
- +# *
- }
- # Information from syslog (kern.*)
- @@ -492,6 +497,11 @@
- for log in /var/log/Xorg.*.log; do
- [ "$log" != '/var/log/Xorg.*.log' ] || return 17
- cp -a -- "$log" hardware/Xorg/ || rc=1
- +# * cut computer name, domain and uuid from logfile (change by <shadowsbrother@gmail.com>)
- + logf=`echo $log|cut -f4 -d '/'`
- + sed -i 's/ Linux \(.*[a-bA-B0-9-]\).\(.*[a-bA-B0-9-]\) / Linux /' hardware/Xorg/$logf
- + sed -i 's/ root=UUID=\(.*[a-b0-9-]\) / root=UUID= /' hardware/Xorg/$logf
- +# *
- done
- return $rc
- }
- @@ -519,6 +529,9 @@
- [ ! -L "$f" ] && [ -f "$f" ] ||
- continue
- cp -aft system/etc/ -- "$f"
- +# * cut comments here (change by <shadowsbrother@gmail.com>)
- + [ "$f" = "/etc/lsb_release" ] || sed -i '/^#/d' system$f
- +# *
- done
- }
- @@ -591,10 +604,15 @@
- exit 0
- [ -n "$outfile" ] ||
- - outfile="$cwd/sysreport-$(date +"%Y%m%d").tar.bz2"
- +# * make .tar.xz file here (change by <shadowsbrother@gmail.com>)
- + outfile="$cwd/sysreport-$(date +"%Y%m%d").tar.xz"
- +# *
- begin_msg "Saving system information to ${outfile##*/}"
- -tar -cjf "$outfile" * && rc=0 || rc=$?
- +# * make .tar.xz file here (change by <shadowsbrother@gmail.com>)
- +export XZ_OPT="-9 --extreme"
- +tar cfJ "$outfile" * && rc=0 || rc=$?
- +# *
- end_msg "$rc"
- printf '\n\nPlease submit %s to sysreport@altlinux.org\n\n' "$outfile"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement