/[smecontribs]/rpms/smeserver-arkeia/contribs7/smeserver-arkeia-1.0-noeject.patch
ViewVC logotype

Contents of /rpms/smeserver-arkeia/contribs7/smeserver-arkeia-1.0-noeject.patch

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


Revision 1.1 - (show annotations) (download)
Mon Dec 24 16:36:42 2007 UTC (16 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-arkeia-1_0-11_el4_sme, smeserver-arkeia-1_0-8_el4_sme, smeserver-arkeia-1_0-9_el4_sme, smeserver-arkeia-1_0-16_el4_sme, smeserver-arkeia-1_0-13_el4_sme, smeserver-arkeia-1_0-10_el4_sme, smeserver-arkeia-1_0-12_el4_sme, smeserver-arkeia-1_0-17_el4_sme, smeserver-arkeia-1_0-14_el4_sme
Import on branch contribs7 of package smeserver-arkeia-1.0-8.el4.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' smeserver-arkeia-1.0/root/etc/e-smith/events/actions/eject-tape mezzanine_patched_smeserver-arkeia-1.0/root/etc/e-smith/events/actions/eject-tape
2 --- smeserver-arkeia-1.0/root/etc/e-smith/events/actions/eject-tape 2004-07-26 10:31:46.000000000 -0600
3 +++ mezzanine_patched_smeserver-arkeia-1.0/root/etc/e-smith/events/actions/eject-tape 1969-12-31 17:00:00.000000000 -0700
4 @@ -1,22 +0,0 @@
5 -#!/usr/bin/perl -w
6 -
7 -package esmith;
8 -
9 -use strict;
10 -use esmith::ConfigDB;
11 -
12 -my $event = shift;
13 -my $cause = shift || "unknown";
14 -exit 0 if $cause eq "desktop";
15 -
16 -my $confdb = esmith::ConfigDB->open_ro;
17 -my $backup = $confdb->get('backup') or die "No backup db entry found\n";
18 -my $device = $backup->prop('Device') || '/dev/st0';
19 -my $eject = $backup->prop('Eject') || 'no';
20 -
21 -exit 0 unless $device =~ /[sh]t/;
22 -
23 -if (lc($eject) eq 'yes') {
24 - exec("/bin/mt", "-f", $device, "eject") if $eject eq 'Yes' || $eject eq 'yes';
25 - die("A problem occurred execing mt");
26 -}

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