[LinuxPPS] systemd & ldattach

Udo van den Heuvel udovdh at xs4all.nl
Tue Nov 20 15:25:00 CET 2012


On 2012-10-19 08:28, Udo van den Heuvel wrote:
> Hello,
> 
> How to elegantly hack the `ldattach 18 /dev/ttySx &` into an environment
> that doesn't use the SysV scripts but systemd?
> Basically, if /dev/ppsX does not exist ldattach should be run before
> ntpd is started.


Stuff like:

([[ -c /dev/pps0 ]] || ldattach 18 /dev/ttyS2 &) ; ntpd ....


Anyone?

Udo





More information about the discussions mailing list