- Use full path when invoking hciconfig. (Ville Skyttä, #426721)
This commit is contained in:
parent
e59fcf7fc0
commit
67814a5bbe
12
powertop-1.9-hciconfig.patch
Normal file
12
powertop-1.9-hciconfig.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up powertop-1.9/bluetooth.c~ powertop-1.9/bluetooth.c
|
||||
--- powertop-1.9/bluetooth.c~ 2007-09-29 21:58:57.000000000 +0300
|
||||
+++ powertop-1.9/bluetooth.c 2007-12-25 02:57:00.000000000 +0200
|
||||
@@ -90,7 +90,7 @@ static int previous_bytes = -1;
|
||||
|
||||
void turn_bluetooth_off(void)
|
||||
{
|
||||
- system("hciconfig hci0 down &> /dev/null");
|
||||
+ system("/usr/sbin/hciconfig hci0 down &> /dev/null");
|
||||
system("/sbin/rmmod hci_usb &> /dev/null");
|
||||
}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: powertop
|
||||
Version: 1.9
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Power consumption monitor
|
||||
|
||||
Group: Applications/System
|
||||
@ -13,6 +13,7 @@ BuildRequires: gettext
|
||||
BuildRequires: ncurses-devel
|
||||
|
||||
Patch1: powertop-1.7-strncpy.patch
|
||||
Patch2: powertop-1.9-hciconfig.patch
|
||||
|
||||
%description
|
||||
PowerTOP is a tool that finds the software component(s) that make your
|
||||
@ -21,6 +22,7 @@ computer use more power than necessary while it is idle.
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1 -b .strncpy
|
||||
%patch2 -p1 -b .hciconfig
|
||||
|
||||
%build
|
||||
export CFLAGS="$RPM_OPT_FLAGS"
|
||||
@ -41,6 +43,9 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_mandir}/man1/powertop.1*
|
||||
|
||||
%changelog
|
||||
* Tue Jan 22 2008 Adam Jackson <ajax@redhat.com> 1.9-2
|
||||
- Use full path when invoking hciconfig. (Ville Skyttä, #426721)
|
||||
|
||||
* Mon Dec 10 2007 Josh Boyer <jwboyer@gmail.com> 1.9-1
|
||||
- Update to latest release
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user