Miklos Vajna <vmiklos@xxxxxxxxxxxxxx> writes: > Hm, I must be crazy when I wrote this. It has three exit codes: > > 0 if on AC power > 1 if not on AC power > 255 if can't tell > > So IMHO the right think to do is to check if the return value is != 1, > and if that's true, then do an exit 0. If it is "can't tell", then it is "can't tell". Don't you want to err on the safe side? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html