conflicts between shutdown hooks of nvram-wakeup and e.g. noad
Christoph Martin
pkg-vdr-dvb-devel@lists.alioth.debian.org
Fri, 21 Jan 2005 15:34:50 +0100
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig34F20362DD6833C8BAE3B176
Content-Type: multipart/mixed;
boundary="------------010804000204020104060106"
This is a multi-part message in MIME format.
--------------010804000204020104060106
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Christoph Martin schrieb:
> Hi
>
> Thomas Schmidt schrieb:
>
>>Well, my perl-knowledge is not very good, so i will keep the very
>>simple c-programm for now, but the suid-perl-script will be my first
>>point on the TODO for vdr 1.2.6-7 (Mainly because then we can make
>>the package vdr Arch: all again.) ;-)
>
>
> Hmm. I did not realise until now that you changed it from all to any.
> But this would mean a change in the overide file on master, which will
> delay the installation of the package for one or two weeks. Perhaps I
> can help you with the perl part.
Please try the attached perl script instead of the c-program.
Christoph
--
============================================================================
Christoph Martin, EDV der Verwaltung, Uni-Mainz, Germany
Internet-Mail: Christoph.Martin@Uni-Mainz.DE
Telefon: +49-6131-3926337
Fax: +49-6131-3922856
--------------010804000204020104060106
Content-Type: application/x-perl;
name="vdr-shutdown-wrapper.pl"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="vdr-shutdown-wrapper.pl"
#!/usr/bin/perl -Tw
use strict;
# Set path to known value
$ENV{PATH} = "/usr/sbin:/usr/bin:/sbin:/bin";
# Allowed user to run this script
my $user = "vdr";
# Program to execute
my $program = "/usr/lib/vdr/vdr-shutdown";
# Get uid of calling user
my $runuser = getpwuid($<);
# Only run if calling user is allowed user
if ($runuser eq $user) {
exec($program, @ARGV);
} else {
die "$0 must be run as user $user\n";
}
--------------010804000204020104060106--
--------------enig34F20362DD6833C8BAE3B176
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB8RMKgeVih7XOVJcRAmDkAJ9B7XNJpoYkrSJIG1W1SzsngCFxggCgmRke
iDEALs93nLs8sK6siOebU9g=
=A1t2
-----END PGP SIGNATURE-----
--------------enig34F20362DD6833C8BAE3B176--