From: Gioele Barabucci <ml@gioelebarabucci.com>
To: linux-hotplug@vger.kernel.org
Subject: [PATCH] run only wanted rc
Date: Fri, 31 May 2002 10:14:52 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-102284000823706@msgid-missing> (raw)
[-- Attachment #1: Type: text/plain, Size: 572 bytes --]
This patch make hotplug run only .rc files that are executable.
In my sistem I use to do chmod -x pci.rc so I avoid complains about pci at
boot time.
PS.: hotplug project is using GNU indentation[1]? it seems so, the patch
corrects also indentation.
[1] 4 spaces for odd indentation and 1 tab each even indentation
Ex.:
base-statement
child1
child2
child2-1
child2-1-1
child2-1-2
child3
--
Gioele Barabucci (Gb])
) mailto:dev@gioelebarabucci.com
) http://www.gioelebarabucci.com
) ) I've been and now I've gone
) ) /Magic Pie^Oasis
[-- Attachment #2: indent.patch --]
[-- Type: text/x-diff, Size: 1127 bytes --]
? indent.patch
Index: hotplug
===================================================================
RCS file: /cvsroot/linux-hotplug/admin/etc/rc.d/init.d/hotplug,v
retrieving revision 1.2
diff -u -3 -p -r1.2 hotplug
--- hotplug 23 Feb 2001 22:05:59 -0000 1.2
+++ hotplug 31 May 2002 10:04:19 -0000
@@ -13,29 +13,32 @@
# source function library
if [ -f /etc/init.d/functions ]; then
- . /etc/init.d/functions
+ . /etc/init.d/functions
elif [ -f /etc/rc.d/init.d/functions ]; then
- . /etc/rc.d/init.d/functions
+ . /etc/rc.d/init.d/functions
fi
case "$1" in
start|restart|status)
- for RC in /etc/hotplug/*.rc
- do
- $RC $1
+ for RC in /etc/hotplug/*.rc; do
+ if [ -x $RC ]; then
+ $RC $1
+ fi
done
touch /var/lock/subsys/hotplug
;;
stop)
- for RC in /etc/hotplug/*.rc
- do
- $RC stop
- done
- rm -f /var/lock/subsys/hotplug
- ;;
+ for RC in /etc/hotplug/*.rc; do
+ if [ -x $RC ]; then
+ $RC stop
+ fi
+ done
+ rm -f /var/lock/subsys/hotplug
+ ;;
*)
echo $"Usage: $0 {start|stop|restart|status}"
exit 1
;;
esac
+
next reply other threads:[~2002-05-31 10:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-31 10:14 Gioele Barabucci [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-08-09 18:29 [PATCH] run only wanted rc David Brownell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-102284000823706@msgid-missing \
--to=ml@gioelebarabucci.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.