1 |
slords |
1.1 |
diff -up e-smith-base-5.2.0/root/etc/e-smith/events/actions/conf-modules.weak-updates e-smith-base-5.2.0/root/etc/e-smith/events/actions/conf-modules |
2 |
|
|
--- e-smith-base-5.2.0/root/etc/e-smith/events/actions/conf-modules.weak-updates 2010-11-30 12:50:14.000000000 -0700 |
3 |
|
|
+++ e-smith-base-5.2.0/root/etc/e-smith/events/actions/conf-modules 2010-11-30 12:57:26.000000000 -0700 |
4 |
|
|
@@ -25,7 +25,7 @@ use Errno; |
5 |
|
|
use File::Find; |
6 |
|
|
|
7 |
|
|
# Remove stale symlinks from /lib/modules |
8 |
|
|
-finddepth(sub{unlink unless -e $_}, '/lib/modules/'); |
9 |
|
|
+finddepth({ wanted => sub{unlink if m{/weak-updates/} && ! -e $_}, no_chdir => 1}, '/lib/modules/'); |
10 |
|
|
|
11 |
|
|
opendir(BOOT, "/boot") or die("Can't open /boot directory: $!\n"); |
12 |
|
|
|