The daemon can apply a configuration change to the following parameters without a restart: sap_interval, syslog_proto, syslog_server, log_severity, sample_rate The daemon can apply a configuration change to the following parameters without a light restart: http_port, rtsp_port, http_base_dir, rtp_mcast_base, sap_mcast_addr, rtp_port, rtp_port, status_file, interface_name, mdns_enabled A light restart means that the configuration can be applied without interrupting the playback/capture applications A change to one of following paramters causes a full daemon restart: interface_name, tic_frame_size_at_1fs, max_tic_frame_size On PTP status change the daemon can run in background an external shell script whose path name is specified by the new ptp_status_script Config parameter. If this parameter is empty, no script is invoked. The PTP clock status is passed as first parameter to the script and it can be unlocked, locking or locked. A sample script is provided in daemon/scripts/ptp_status.sh
12 lines
276 B
Bash
Executable File
12 lines
276 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ $1 == "locked" ]; then
|
|
echo "$0 >> PTP locked";
|
|
#speaker-test -D plughw:RAVENNA -r 48000 -c 2 -t sine &
|
|
elif [ $1 == "locking" ]; then
|
|
echo "$0 >> PTP locking";
|
|
elif [ $1 == "unlocked" ]; then
|
|
echo "$0 >> PTP unlocked";
|
|
#killall -9 speaker-test
|
|
fi
|