Re: [opensuse] ubuntu rc.local
- From: Primm <lynn@xxxxxxxxxxxx>
- Date: Sat, 22 Sep 2007 14:10:38 +0200
On Saturday 22 September 2007 13:45, Carlos E. R. wrote:
The Saturday 2007-09-22 at 07:14 -0400, James Knott wrote:
As I mentioned in the other note, if you want stuff to run at the end of
the init level change, create /etc/rc.d/boot.local.
Er... I believe it runs only afther boot, not on every runlevel change:
However, /etc/rc.d/after.local is executed after each runlevel change. You
can see that reading the main script, /etc/rc.d/rc:
Hi everyone.
On my setup rc.d is a link to init.d. There is no after.local. Basically my
graphics tablet doesn't hotplug so this is the workaround. I move the tablet
around from box to box so I need to enable and disable it.
This is what Ubuntu has in rc.local and this is what I want to implement on
10.2:
-------
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
XORG_CONF=/etc/X11/xorg.conf
if [ -e /dev/tablet-event ]; then
sed -ie 's/^\(\s*\)\#\(\s*InputDevice\s\s*\"WizardPen\
Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\1\2/' "$XORG_CONF"
echo "Udev created /dev/tablet-event = Tablet present! - Tablet-driver
enabled"
else
sed -ie 's/\(^\s*InputDevice\s\s*\"WizardPen\
Tablet\"\s\s*\"AlwaysCore\"\)\s*$/\#&/' "$XORG_CONF"
echo "Udev did NOT create /dev/tablet-event = tablet NOT present! -
Tablet-driver disabled"
fi
exit 0
--------
If I create /etc/init.d/after.local and paste this in is that what you are
saying is equivalent?
Poking around in /etc/init.d scares the life out of me so I want to be really
sure.
Cheers, Steve.
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Follow-Ups:
- Re: [opensuse] ubuntu rc.local
- From: Carlos E. R.
- Re: [opensuse] ubuntu rc.local
- References:
- [opensuse] ubuntu rc.local
- From: primm
- Re: [opensuse] ubuntu rc.local
- From: James Knott
- Re: [opensuse] ubuntu rc.local
- From: Carlos E. R.
- [opensuse] ubuntu rc.local
- Prev by Date: Re: [opensuse] SuSE and Verizon FiOS?
- Next by Date: Re: [opensuse] SuSE and Verizon FiOS?
- Previous by thread: Re: [opensuse] ubuntu rc.local
- Next by thread: Re: [opensuse] ubuntu rc.local
- Index(es):
Relevant Pages
|