[Server-devel] ds-backup.sh on desktop hardware

2010-01-28 Thread Dave Bauer
It looks like line 113 does not work it gets in error when you do not have
any battery and
the command

hal-get-property --udi $B_HAL --key battery.charge_level.percentage

returns instead of a numeric value, the help for hal-get-property.

I think we need a check for $B_HAL being empty here.

Dave
-- 
Dave Bauer
d...@solutiongrove.com
http://www.solutiongrove.com
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] ds-backup.sh on desktop hardware

2010-01-28 Thread Martin Langhoff
On Thu, Jan 28, 2010 at 9:41 AM, Dave Bauer d...@solutiongrove.com wrote:
 hal-get-property --udi $B_HAL --key battery.charge_level.percentage

 returns instead of a numeric value, the help for hal-get-property.

 I think we need a check for $B_HAL being empty here.

Sounds reasonable. Patches welcome ;-)


m
-- 
 martin.langh...@gmail.com
 mar...@laptop.org -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel