the condition you're looking for is: Code: if [$percent -eq -1] then echo -n "flightmode on" fi Or something like that...
if [$percent -eq -1] then echo -n "flightmode on" fi