/[smeserver]/rpms/e-smith-base/sme8/e-smith-base-4.18.0-devicechk.patch
ViewVC logotype

Annotation of /rpms/e-smith-base/sme8/e-smith-base-4.18.0-devicechk.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (hide annotations) (download)
Tue Jul 3 02:55:13 2007 UTC (17 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: e-smith-base-4_18_0-89_el5_sme, e-smith-base-4_18_0-82_el5_sme, e-smith-base-4_18_0-67_el5_sme, e-smith-base-4_18_0-88_el5_sme, e-smith-base-4_18_0-87_el5_sme, e-smith-base-4_18_0-77_el5_sme, e-smith-base-4_18_0-69_el5_sme, e-smith-base-4_18_0-81_el5_sme, e-smith-base-4_18_0-100_el5_sme, e-smith-base-4_18_0-72_el5_sme, e-smith-base-4_18_0-78_el5_sme, e-smith-base-4_18_0-94_el5_sme, e-smith-base-4_18_0-66_el5_sme, e-smith-base-4_18_0-83_el5_sme, e-smith-base-4_18_0-63_el5_sme, e-smith-base-4_18_0-92_el5_sme, e-smith-base-4_18_0-64_el5_sme, e-smith-base-4_18_0-101_el5_sme, e-smith-base-4_18_0-98_el5_sme, e-smith-base-4_18_0-102_el5_sme, e-smith-base-4_18_0-90_el5_sme, e-smith-base-4_18_0-104_el5_sme, e-smith-base-4_18_0-71_el5_sme, e-smith-base-4_18_0-103_el5_sme, e-smith-base-4_18_0-99_el5_sme, e-smith-base-4_18_0-73_el5_sme, e-smith-base-4_18_0-79_el5_sme, e-smith-base-4_18_0-75_el5_sme, e-smith-base-4_18_0-76_el5_sme
Changes since 1.1: +2 -2 lines
Updates

1 slords 1.1 diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/perform_backup.pm mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/perform_backup.pm
2     --- e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/perform_backup.pm 2007-07-01 10:57:41.000000000 -0600
3     +++ mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/perform_backup.pm 2007-07-01 10:55:48.000000000 -0600
4     @@ -151,7 +151,7 @@
5     );
6     return unless $rc == 0;
7     sleep(3);
8     - my @dirs;
9 slords 1.2 + my @dirs = 0;
10 slords 1.1 open(FSTAB, "</etc/fstab");
11     while (<FSTAB>)
12     {
13     diff -Nur -x '*.orig' -x '*.rej' e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/perform_restore.pm mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/perform_restore.pm
14     --- e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/perform_restore.pm 2007-07-01 10:57:41.000000000 -0600
15     +++ mezzanine_patched_e-smith-base-4.18.0/root/usr/lib/perl5/site_perl/esmith/console/perform_restore.pm 2007-07-01 10:57:15.000000000 -0600
16     @@ -42,7 +42,7 @@
17     return;
18     }
19     sleep(3);
20     - my @dirs;
21 slords 1.2 + my @dirs = 0;
22 slords 1.1 open(FSTAB, "</etc/fstab");
23     while (<FSTAB>)
24     {
25     @@ -86,6 +86,7 @@
26    
27     unless (-f "$device/smeserver.tgz")
28     {
29     + system("/bin/umount", "$device");
30     ($rc, $choice) = $console->message_page
31     (
32     title => gettext("Backup file not found"),
33     @@ -107,7 +108,10 @@
34     "\n\n" .
35     gettext("Do you wish to restore from this file?"),
36     );
37     - goto INITIATE_RESTORE unless ($rc == 0);
38     + unless ($rc == 0) {
39     + system("/bin/umount", "$device");
40     + goto INITIATE_RESTORE;
41     + }
42     system("/sbin/e-smith/signal-event", "pre-restore");
43     system("(cd / ; cat $device/smeserver.tgz |
44     pv -n -s $size |

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed