Thread
:
N900: Can profile type be determined in a shell script?
View Single Post
rotoflex
2012-01-19 , 05:18
Posts: 569 | Thanked: 462 times | Joined on Jul 2010 @ USA
#
1
Is there a command line entry that returns a value that can be used to determine if the N900 is in Silent or General profile?
I am using a timed shell script which calls play-sound to play clock chimes, the disadvantage of which is that play-sound will always play, even when the phone's profile is set to Silent.
I need something to exit or otherwise control the shell script, along the lines of
if {
IsProfileSilent() == true
} exit;
Last edited by rotoflex; 2012-01-19 at
08:26
. Reason: Corrected from reference to "aplay" to "play-sound"
Quote & Reply
|
rotoflex
View Public Profile
Send a private message to rotoflex
Find all posts by rotoflex