This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/ptpd/fs/etc/rc.d/ptpd

22 lines
276 B
Plaintext

start()
{
flags=''
if [ -n "$cfg_ptpd_master" ]; then
flags='-gW'
else
flags='-g'
fi
/usr/bin/ptpd2 $flags -b "$cfg_ptpd_interface"
}
stop()
{
if [ -c /dev/rtc0 ]; then
hwclock -w
fi
killall ptpd2 > /dev/null 2>&1
}