On 2019-12-13 02:44, Stefan Schmiedl wrote:
Hi Daniel,
if you have color on your terminal, try
ls -l $(sudo find -L /etc -type l)
The combination of -L (follow symbolic links) and -type l
(entries must be links) produces all broken links below
the given search root.
Now, I could just do `ls -al /etc/runlevels/*` and search manually for
broken symlinks and then manually remove them.
"man find" is good bedtime reading.
s.
That is handy, but I was looking for a method in openrc itself, not
necessarily using find, but that's a good workaround. Thanks!
Dan