Changeset 8507

Show
Ignore:
Timestamp:
03/30/08 08:51:40 (5 years ago)
Author:
miyagawa
Message:

update the code to check btplay is running per chumby software update.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • platform/chumby/scripts/goodnight_chumby

    r7875 r8507  
    2727my $is_night_mode = cat("/proc/sys/sense1/dimlevel") == 1; 
    2828my @proc = split /\n/, `ps`; 
    29 my $music_playing = ((grep /btplayd/, @proc) >= 2); 
     29my $music_playing = cat("/var/run/btplay.state") == 2; 
    3030 
    3131if ($is_night_mode && $music_playing) {