View Single Post
calvin_42's Avatar
Posts: 286 | Thanked: 219 times | Joined on Feb 2010 @ France
#224
Originally Posted by kerneld View Post
Nope.. think it has to do with how you group those arguments. With bash you have to explicitly say if it's an and/or condition stringing those up (with grouping for futher clarity preferred). Also, it's highly likely the operators don't necessarily equate to ash's.

On bash:

-a file
True if file exists.

-n string
True if the length of string is non-zero.

arg1 OP arg2
OP is one of -eq, -ne, -lt, -le, -gt, or -ge. These arithmetic binary operators return true if arg1 is equal to, not equal to, less than, less than or equal to, greater than, or greater than or equal to arg2, respectively. Arg1 and arg2 may be positive or negative integers.

Anyway, I guess I could sidestep all of these and just change the headers on your scripts to use the shell you intended them for.. Busybox, right?
Try #!/bin/ash yep!
__________________
AutoDisconnect automatically closes your idle connections (Wifi/3G/Bluetooth) and switches the network mode to 2G when 3G is not used. [ Thread ] [ Wiki ] [ Donate ]