Skip to contentSkip to conversation

suspend script fails with 2.6.31, related to stdout?

DISCUSSION Tomas M. 1 participant 1 message Jul 17, 2009

lore
Share & tools
lore

Tomas M.

author
#0 lore raw

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?