View Single Post
dchky's Avatar
Posts: 549 | Thanked: 299 times | Joined on Jun 2010 @ Australian in the Philippines
#31
Originally Posted by Mentalist Traceur View Post
Meanwhile [sarcasm]thanks so much to everyone who read my request for dbus help and actually knew dbus enough to knows how to do what I asked.[/sarcasm]. I get that most people don't know dbus that well, and some might not have had time or had something impostant to do instead - but if you knew how to help and didn't bother, middle finger to you.
Thankyou kindly for the middle finger. It is much appreciated.

When the information is already out there and has already been posted several times, it gets somewhat tiring to do the silver spoon feeding thing.

Since power saving is the order of the day, it would be imperceptibly and almost unmeasurably more efficient to get rid of all the if/then business and replace it with a case (Switch) - it is also far more elegant to look at.

Code:
case expression in
    pattern1 )
        statements ;;
    pattern2 )
        statements ;;
    ...
esac
 

The Following 2 Users Say Thank You to dchky For This Useful Post: