suspend script fails with 2.6.31, related to stdout?

From: Tomas M.
Date: Fri Jul 17 2009 - 15:22:03 EST


a pm-suspend hook fails with 2.6.31 (which does not under 2.6.30). the error as follows:
---

/etc/pm/sleep.d/11netcfg resume suspend: /bin/stty: standard input: Inappropriate ioctl for device
/bin/stty: standard input: Inappropriate ioctl for device
:: Scanning for networks [BUSY] wlan0 Interface doesn't support scanning : Network is down

wlan0 Interface doesn't support scanning : Network is down

wlan0 Interface doesn't support scanning : Network is down

wlan0 Interface doesn't support scanning : Network is down

wlan0 Interface doesn't support scanning : Network is down

wlan0 Interface doesn't support scanning : Network is down

/etc/rc.d/functions: line 99: printf: - : invalid option
printf: usage: printf [-v var] format [arguments]
[FAIL]
---
ive been tracking down the script, and it all comes down to iwlist (which is used to scan for networks) which prints outputs to stdout. i dont know how to debug this any further.. does anyone have any idea?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/