Skip to content

Commit

Permalink
Add i-nex.py for apport/package-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
eloaders committed Mar 18, 2012
1 parent 4ccc10d commit dafba87
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 9 deletions.
30 changes: 30 additions & 0 deletions debian/i-nex.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
'''apport package hook for i-nex
Author: eloaders <eloaders@yahoo.com>
'''

from apport.hookutils import *


def add_info(report):
attach_file_if_exists(report, '/sys/bus/acpi/devices/LNXTHERM:00/thermal_zone/temp', 'ThermalZone')
attach_file_if_exists(report, '/proc/acpi/battery/BAT1/info', 'BAT1_Info')
attach_file_if_exists(report, '/proc/acpi/battery/BAT0/info', 'BAT0_Info')
attach_file_if_exists(report, '/proc/cpuinfo', 'CpuInfo')
attach_file_if_exists(report, '/etc/timezone', 'TimeZone')

attach_root_command_outputs(report,
{'lsusb': 'lsusb',
'lspci': 'lspci',
'lshal': 'lshal',
'lshw': 'lshw',
'UnameA': 'uname -a',
'LsSysBlock': 'ls /sys/block/ | grep sd',
'Glxinfo': 'glxinfo',
'Xdpyinfo': 'xdpyinfo',
'Xrandr': 'xrandr',
'UsbDevicesInBus': 'ls /sys/bus/usb/devices/*/* | grep manufacturer | grep [0-9]',
'CurrentDmesg': 'dmesg',
'FreeM': 'free -m',
'SwaponS': 'swapon -s'})
1 change: 1 addition & 0 deletions debian/install
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ src/i-nex/i-nex.gambas usr/bin
src/i-nex/logo/i-nex.0.4.x.png usr/share/pixmaps
debian/i-nex.desktop usr/share/applications
debian/check_kernel usr/bin
debian/i-nex.py /usr/share/apport/package-hooks
debian/changelog-0.4.6 /usr/share/doc/i-nex
COPYING usr/share/i-nex/pastebinit
pastebin.d usr/share/i-nex/pastebinit
Expand Down
19 changes: 10 additions & 9 deletions src/i-nex/.settings
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,32 @@ SearchString=True

[OpenFile]
File[1]=".src/Finfosys.form"
File[2]=".src/Finfosys.class:584.14"
File[2]=".src/Finfosys.class:178.14"
File[3]=".src/Global.class:6.65"
File[4]=".src/About.form"
File[5]=".src/About.class:63.30"
File[6]=".src/distrodetect.class:12.30"
File[7]=".src/battery.module:24.17"
File[8]=".src/Disk_Drives.module:31.17"
File[7]=".src/battery.module:26.47"
File[8]=".src/Disk_Drives.module:40.36"
File[9]=".src/ScreenShot.form"
File[10]=".src/ScreenShot.class:12.63"
File[11]=".src/ScreenShotM.module:7.0"
File[12]=".src/USB_Drives.module:62.33"
File[13]=".src/Asound_Drives.module:36.32"
File[14]=".src/HWmon_coretemp.module:3.18"
File[12]=".src/USB_Drives.module:19.33"
File[13]=".src/Asound_Drives.module:33.27"
File[14]=".src/HWmon_coretemp.module:7.1"
File[15]=".src/Reportm.module:336.71"
File[16]=".src/FReport_Gen.form"
File[17]=".src/FReport_Gen.class:33.1"
Active=18
File[18]=".src/Start_App_Args.form"
File[19]=".src/Start_App_Args.class:45.4"
File[20]=".src/ChkPrm.module:14.3"
File[21]=".src/BIOS_microcode_update_recommended.module:9.96"
File[22]=".src/thermal_zone.module:13.11"
Active=23
File[22]=".src/thermal_zone.module:8.12"
File[23]=".src/FModules.form"
File[24]=".src/FModules.class:15.28"
Count=24
File[25]=".src/Input_Devices.module:0.0"
Count=25

[Watches]
Count=0
Expand Down

0 comments on commit dafba87

Please sign in to comment.