Changeset 1775


Ignore:
Timestamp:
Sep 16, 2010, 9:07:53 AM (9 years ago)
Author:
matthijs
Message:

audiod: Call fonstated script directly if fs command fails.

This makes sure that audio is started, even when fonstated is not
running yet (which can happen when an USB audio device is plugged in at
boot).

References: #637

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/audiod/files/etc/hotplug.d/audio/00-usb.sh

    r325 r1775  
    1 [ "$ACTION" == "add" ] && fs -l RestartAudiod
     1# Fallback to running the fonstated script manually, since we might be
     2# run at boot time before sonstated is running.
     3[ "$ACTION" == "add" ] && (pidof fonstated && fs -l RestartAudiod || /etc/fonstated/RestartAudiod)
    24[ "$ACTION" == "released" ] && killall audiod
Note: See TracChangeset for help on using the changeset viewer.