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/ntp/fs/etc/rc.d/gpspps

24 lines
426 B
Plaintext

start()
{
if ! [ -f /dev/gps0 ]; then
mount -o remount,rw /
ln -fs "$cfg_gpspps_dev" /dev/gps0
mount -o remount,ro /
fi
if ! [ -f /dev/gpspps0 ]; then
mount -o remount,rw /
ln -fs /dev/pps0 /dev/gpspps0
mount -o remount,ro /
fi
/usr/bin/ldattach PPS /dev/gps0
/usr/bin/ntpd -g -c /etc/ntp/gpspps.cfg
}
stop()
{
killall ntpd
killall ldattach
}