Choose the right battery for a given electrical equipment
You have matched the voltage (24V) which is necessary to prevent damage to the equipment. However, the current provided by the battery pack may be too low. The AC adapter provides 3.125A while your pack only provides 2.5A. Since the supplied amperage must be greater then or equal to the amperage drawn, we don't really know how much is actually drawn by your equipment. If it actually draws &lt;=2.5A, you should be ok. If it draws more, your battery pack will either:


Shut down,
Reduce the output voltage, which could damage the equipment, or
Blow up, catch fire or similar if it's not well designed.


To be safe, you should select a battery pack which (a) provides the same voltage, and (b) provides at least as much current, as the adapter being replaced.