dhcpcd in Slackware 11.0 does not return any exit codes other than 0?
Hi. I was running stock Slackware 11.0 (upgraded from 10.2) and I had a script wrapping the dhcpcd to start/restart and background failed dhcpcd (when the ISP is down, etc)
The script relies on dhcpcd to properly return a non zero error level in the case that dhcpcd timed out getting an IP from my ISP. Oddly enough it always returns zero. I then took the code apart and saw that when it times out, it only returns 0 not any other exit code. Being lazy enough I just looked at the older versions of dhcpcd (Slack-10.2 variant) and then I saw that they approximately returned something else. So I copied that line and rebuilt / installed the package.
My question is: has anybody noticed this? and does anybody have a proper fix? or how do we get "official" support for this? (versioning up of dhcpcd might work, but I'm reluctant to try on my only production firewall machine)
PS. I'm at work and can't post more salient details like version numbers.