Re: /etc/init.d hardcoded

Martin Preuss <[email protected]> Sun, 6 Jan 2008 15:32:44 +0100
Newsgroups gmane.comp.lib.libchipcard.devel
Message-ID <[email protected]>
Hi,

On Sonntag, 6. Januar 2008, Sascha Silbe wrote:
> On Sun, Jan 06, 2008 at 01:40:31PM +0100, Martin Preuss wrote:
> > On Sonntag, 6. Januar 2008, Sascha Silbe wrote:
[...]
> > The init-script needs to be installed to "/etc/init.d" otherwise it
> > will never be executed.
> > If you use sysconfdir you will run into trouble if sysconfdir is set
> > to something other than "/etc", e.g. "/etc/chipcard".
>
> And if you hardcode it, only root is able to install libchipcard. That's
> even worse.
> Please either add an option for changing the path (so non-root installs
> can use a different path) or make installation of the init script
> optional (it's of no use in those cases anyway). But just hardcoding the
> path will cause non-root installations to break (i.e. abort).
[...]

I currently don't have the time to work on that myself and just changing the 
hardcoded /etc to $sysconfdir would break libchipcard for nearly every 
approach except yours so that is not an option.

But I'd gladly accept a patch which makes the installation of the init script 
optional :-)


Regards
Martin


-- 
"Things are only impossible until they're not"

Martin Preuss - http://www.aquamaniac.de/
AqBanking - http://www.aqbanking.de/
LibChipcard - http://www.libchipcard.de/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/