Commit 045bd7e0 authored by Joanne Hugé's avatar Joanne Hugé

Fix run-ptpl hardware timestamping mode

parent cd24a65e
......@@ -30,6 +30,7 @@ while getopts "i:o:p:rsH" opt; do
interface=${OPTARG}
;;
H )
hardware_ts=1
opts+=" -H "
;;
o )
......@@ -52,6 +53,10 @@ done
shift $((OPTIND-1))
if [ -z "$hardware_ts" ]; then
opts+=" -S"
fi
opts+="-i $interface"
if [ $profile_name == "none" ]; then
......@@ -69,5 +74,5 @@ log=ptp4l_${interface}_log
if [ -n "$reset" ]; then
killall ptp4l;
fi
echo "ptp4l $opts --step_threshold=1 -m -S &> ~/$log &";
ptp4l $opts --step_threshold=1 -m -S &> ~/$log &
echo "ptp4l $opts --step_threshold=1 -m &> ~/$log &";
ptp4l $opts --step_threshold=1 -m &> ~/$log &
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment