Package: byobu
Version: 2.24-1
Severity: normal
File: /usr/lib/byobu/battery

I get

    ls: cannot access /proc/acpi/battery: No such file or directory

because on my system, this information is computed thusly:

    backtick 2 120 0 sh -c 'cd /sys/class/power_supply/BAT0 && echo \ $((100 * 
`cat charge_now` / `cat charge_full`))%'

It is also bad form to use ls(1) programmatically; you should use
globbing instead:  http://mywiki.wooledge.org/ParsingLs

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-1-686 (SMP w/1 CPU core)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages byobu depends on:
ii  debconf [debconf-2.0]         1.5.27     Debian configuration management sy
ii  gettext-base                  0.17-8     GNU Internationalization utilities
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-newt                   0.52.10-4  A NEWT module for Python
ii  screen                        4.0.3-14   terminal multiplexor with VT100/AN

Versions of packages byobu recommends:
pn  lsb-release                   <none>     (no description available)
pn  update-notifier-common        <none>     (no description available)

Versions of packages byobu suggests:
pn  vim                           <none>     (no description available)

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to