gharris999;416175 Wrote:
> Re S3 more than once per reboot: what hardware are you using?
It's an onboard NIC using the via_rhine driver
Code:
--------------------
$ lsmod|grep rhine
via_rhine 31240 0
mii 13440 1 via_rhine
--------------------
If I do sudo pm-suspend then it works and I can WOL and it comes back
up in a second or two. If I then issue sudo pm-suspend again, it sleeps
fine, but only a keyboard (if I have it plugged in) or a power button
press will wake it. Not WOL. I've googled so much on this issue my
fingers are sore. Loads of results suggesting how to make WOL work, but
none for when it works from S3 once, but not again.
gharris999;416175 Wrote:
> Re making it work for Europeans: I don't understand about the "\+"
> though. Why is that always false? Is that a wrongly expressed /
> escaped regex? Doesn't the "+" need to be escaped in order to be
> interpreted properly?
It's a bit of a head f*&k to me. It seems to make a difference if you
use single ' or double quotes ", if the 'if' uses [[ ]] or [ ], or if
you use back quote ` (to execute a command).
Code:
--------------------
$ if [[ "+0100" =~ "\+" ]]; then echo "IsEast"; else echo "IsWest"; fi
IsWest
$ if [[ "0000" =~ "\+" ]]; then echo "IsEast"; else echo "IsWest"; fi
IsWest
$ if [[ "-0100" =~ "\+" ]]; then echo "IsEast"; else echo "IsWest"; fi
IsWest
$ if [[ "+0100" =~ "+" ]]; then echo "IsEast"; else echo "IsWest"; fi
IsEast
$ if [[ "0000" =~ "+" ]]; then echo "IsEast"; else echo "IsWest"; fi
IsWest
$ if [[ "-0100" =~ "+" ]]; then echo "IsEast"; else echo "IsWest"; fi
IsWest
$ if [[ "\+0100" =~ "\+" ]]; then echo "IsEast"; else echo "IsWest"; fi
IsEast
--------------------
So it seams as though the backslash \ is just another character to
match and no an escape character in this case, and that the plus +
doesn't need escaping.
--
rickwookie
------------------------------------------------------------------------
rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=62339
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins