From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2013-January/022260.html | 76 +++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 zarb-ml/mageia-dev/2013-January/022260.html (limited to 'zarb-ml/mageia-dev/2013-January/022260.html') diff --git a/zarb-ml/mageia-dev/2013-January/022260.html b/zarb-ml/mageia-dev/2013-January/022260.html new file mode 100644 index 000000000..7817cb2dc --- /dev/null +++ b/zarb-ml/mageia-dev/2013-January/022260.html @@ -0,0 +1,76 @@ + + + + [Mageia-dev] Cleaning up init + + + + + + + + + +

[Mageia-dev] Cleaning up init

+ Dan Fandrich + dan at coneharvesters.com +
+ Wed Jan 30 23:49:23 CET 2013 +

+
+ +
On Tue, Jan 29, 2013 at 10:19:46AM +0000, Colin Guthrie wrote:
+> find /etc/rc.d/rc{0,1,2,3,4,5,6,7}.d -type l -exec sh -c 'if [ ! -e {}
+> ]; then rm -f {}; fi' \;
+> 
+> This does much the same job, but "find" is already used in multiple
+> places so probably a better solution even if the command is more convoluted!
+> 
+> If anyone spots any issues with this, please shout.
+
+This solution has a problem handling files with embedded spaces and
+special shell characters. It could potentially be bad if run on a system
+where a link such as "/etc/rc.d/rc0.d/S01Super * Star Program" exists.
+
+>>> Dan
+
+ + + + + + + + + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1