* Fixes to init script errors introduced in Debian patches
@ 2004-10-21 21:19 Arthur Korn
2004-10-22 5:43 ` Ian Kent
0 siblings, 1 reply; 2+ messages in thread
From: Arthur Korn @ 2004-10-21 21:19 UTC (permalink / raw)
To: autofs
[-- Attachment #1.1: Type: text/plain, Size: 1924 bytes --]
Hi
Two small bugs with causing quite some problems have been fixed.
These have been introduced with the changes made by me to the
init script for Debian. Since I posted those changes here
previously, I supply the fixes as well.
diff -ruN autofs-4.1.3.orig/samples/rc.autofs.in autofs-4.1.3/samples/rc.autofs.in
--- autofs-4.1.3.orig/samples/rc.autofs.in 2004-10-21 21:55:10.000000000 +0200
+++ autofs-4.1.3/samples/rc.autofs.in 2004-10-21 21:55:03.000000000 +0200
@@ -91,7 +91,7 @@
#
function getschemes()
{
- if grep -q '^automount: ' /etc/nsswitch.conf; then
+ if grep -q ^automount: /etc/nsswitch.conf; then
grep ^automount: /etc/nsswitch.conf | \
sed -e 's/^.*://' -e 's/\[.*\]/ /g'
else
diff -ruN autofs-4.1.3.orig/samples/rc.autofs.in autofs-4.1.3/samples/rc.autofs.in
--- autofs-4.1.3.orig/samples/rc.autofs.in 2004-10-21 21:48:49.000000000 +0200
+++ autofs-4.1.3/samples/rc.autofs.in 2004-10-21 21:48:41.000000000 +0200
@@ -188,10 +188,10 @@
: echo DAEMONOPTIONS OPTIONS $daemonoptions $options
startupoptions=
if echo "$options $daemonoptions" | grep -q -- '-t' ; then
- # the first timout value in "$options $daemonoptions" is
+ # the last timout value in "$daemonoptions $options" is
# the one that is taken.
- startupoptions="--timeout=$(echo $options $daemonoptions | \
- sed 's/^.?*--*t\(imeout\)*[ \t=]*\([0-9][0-9]*\).*$/\2/')"
+ startupoptions="--timeout=$(echo $daemonoptions $options| \
+ sed 's/^.*--*t\(imeout\)*[ \t=]*\([0-9][0-9]*\).*$/\2/')"
fi
if echo "$daemonoptions $options" | grep -q -- '-g' ; then
startupoptions="$startupoptions --ghost"
ciao, 2ri
--
Secure email, spread GPG, clearsign all mail. http://www.gnupg.org
.
Nearly all men can stand adversity, but if you want to test a man's
character, give him power.
-- Abraham Lincoln
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 140 bytes --]
_______________________________________________
autofs mailing list
autofs@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/autofs
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Fixes to init script errors introduced in Debian patches
2004-10-21 21:19 Fixes to init script errors introduced in Debian patches Arthur Korn
@ 2004-10-22 5:43 ` Ian Kent
0 siblings, 0 replies; 2+ messages in thread
From: Ian Kent @ 2004-10-22 5:43 UTC (permalink / raw)
To: Arthur Korn; +Cc: autofs
On Thu, 21 Oct 2004, Arthur Korn wrote:
> Hi
>
> Two small bugs with causing quite some problems have been fixed.
>
> These have been introduced with the changes made by me to the
> init script for Debian. Since I posted those changes here
> previously, I supply the fixes as well.
Is that the -t error I got the other day on my Debian install?
Do you upload these to the experimental packages about the same time as
you post here?
<ot>
If I add a patches to the patches directory, with an appropriate order
number, will they be picked up when I build the deb, or do I do it
differently?
</ot>
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-10-22 5:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-21 21:19 Fixes to init script errors introduced in Debian patches Arthur Korn
2004-10-22 5:43 ` Ian Kent
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.