Package: byobu
Version: 5.77-1
Severity: normal
Tags: patch

Dear Maintainer,

  The default in Debian, is that users other than root do not have /sbin 
  in their PATH variable. Hence the wifi_quality addon in byobu doesn't 
  work because it calls 'iwconfig' without indicating the full path, the 
  attached patch fixes this issue.

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-updates'), (500, 'unstable'), 
(1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages byobu depends on:
ii  debconf [debconf-2.0]  1.5.53
ii  gawk                   1:4.1.1+dfsg-1
ii  gettext-base           0.19.2-1
ii  python                 2.7.8-1
ii  python-newt            0.52.17-1
ii  screen                 4.2.1-2
ii  tmux                   1.9-6

Versions of packages byobu recommends:
pn  run-one  <none>
ii  screen   4.2.1-2
ii  tmux     1.9-6

Versions of packages byobu suggests:
pn  apport                  <none>
ii  lsb-release             4.1+Debian13
ii  po-debconf              1.0.16+nmu3
pn  ttf-ubuntu-font-family  <none>
pn  update-notifier-common  <none>
ii  vim                     2:7.4.430-1
ii  w3m                     0.5.3-17

-- debconf information excluded

-- 
 ‎أحمد المحمودي (Ahmed El-Mahmoudy)
  Digital design engineer
 GPG KeyID: 0xEDDDA1B7
 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8  B176 BC19 6A94 EDDD A1B7
--- a/usr/lib/byobu/wifi_quality	2014-09-07 09:58:24.831436160 +0300
+++ b/usr/lib/byobu/wifi_quality	2014-09-07 09:57:51.998194547 +0300
@@ -29,7 +29,7 @@
 	#    Bit Rate=54 Mb/s   Tx-Power=15 dBm
 	#    Link Quality=60/70  Signal level=-50 dBm
 	# the awk below tokenizes the output and prints shell evalable results
-	out=`iwconfig $MONITORED_NETWORK 2>/dev/null |
+	out=`/sbin/iwconfig $MONITORED_NETWORK 2>/dev/null |
 		awk '$0 ~ /[ ]*Link Quality./ {
    sub(/.*=/,"",$2); split($2,a,"/");
    printf "quality=%.0f\n", 100*a[1]/a[2] };

Attachment: signature.asc
Description: Digital signature

Reply via email to