Parent Directory | Revision Log | Revision Graph
Clean up stray symlinks in /lib/modules before depmod
1 | slords | 1.1 | --- e-smith-base-5.0.0/root/etc/e-smith/events/actions/conf-modules.straysymlink 2008-03-26 10:49:00.000000000 -0600 |
2 | +++ e-smith-base-5.0.0/root/etc/e-smith/events/actions/conf-modules 2009-06-06 09:10:39.000000000 -0600 | ||
3 | @@ -22,6 +22,10 @@ | ||
4 | |||
5 | use strict; | ||
6 | use Errno; | ||
7 | +use File::Find; | ||
8 | + | ||
9 | +# Remove stale symlinks from /lib/modules | ||
10 | +finddepth(sub{unlink unless -e $_}, '/lib/modules/'); | ||
11 | |||
12 | opendir(BOOT, "/boot") or die("Can't open /boot directory: $!\n"); | ||
13 |
admin@koozali.org | ViewVC Help |
Powered by ViewVC 1.2.1 |