1 |
slords |
1.1 |
diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.0/root/etc/e-smith/events/actions/conf-modules mezzanine_patched_e-smith-base-4.18.0/root/etc/e-smith/events/actions/conf-modules |
2 |
|
|
--- e-smith-base-4.18.0/root/etc/e-smith/events/actions/conf-modules 2007-08-03 14:42:46.000000000 -0400 |
3 |
|
|
+++ mezzanine_patched_e-smith-base-4.18.0/root/etc/e-smith/events/actions/conf-modules 2007-08-03 14:42:07.000000000 -0400 |
4 |
|
|
@@ -1,7 +1,7 @@ |
5 |
|
|
#!/usr/bin/perl -w |
6 |
|
|
|
7 |
|
|
#---------------------------------------------------------------------- |
8 |
|
|
-# copyright (C) 1999-2005 Mitel Networks Corporation |
9 |
|
|
+# copyright (C) 1999-2007 Mitel Networks Corporation |
10 |
|
|
# |
11 |
|
|
# This program is free software; you can redistribute it and/or modify |
12 |
|
|
# it under the terms of the GNU General Public License as published by |
13 |
|
|
@@ -16,23 +16,19 @@ |
14 |
|
|
# You should have received a copy of the GNU General Public License |
15 |
|
|
# along with this program; if not, write to the Free Software |
16 |
|
|
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 |
|
|
-# |
18 |
|
|
-# Technical support for this program is available from Mitel Networks |
19 |
|
|
-# Please visit our web site www.mitel.com/sme/ for details. |
20 |
|
|
#---------------------------------------------------------------------- |
21 |
|
|
|
22 |
|
|
package esmith; |
23 |
|
|
|
24 |
|
|
use strict; |
25 |
|
|
use Errno; |
26 |
|
|
-use esmith::templates; |
27 |
|
|
|
28 |
|
|
opendir(BOOT, "/boot") or die("Can't open /boot directory: $!\n"); |
29 |
|
|
|
30 |
|
|
while (defined (my $file = readdir(BOOT))) |
31 |
|
|
{ |
32 |
|
|
next unless $file =~ /System.map-(.*)/; |
33 |
|
|
- exec("/sbin/depmod", "-a", "-F", "/boot/System.map-$1", "$1") |
34 |
|
|
+ system("/sbin/depmod", "-a", "-F", "/boot/System.map-$1", "$1") |
35 |
|
|
} |
36 |
|
|
closedir(BOOT) or die("Can't close /boot: $!\n"); |
37 |
|
|
|