Re: [opensuse] ubuntu rc.local



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



Relevant Pages

  • Re: MATLAB Code for a stop process button which ex
    ... especially in the while loop(for each script command starting in the ... % varargin command line arguments to stop_button ... % line_num is the order of execution. ... msgno = msgno+1; ...
    (comp.soft-sys.matlab)
  • Re: CGI Scripts
    ... the URL to have "Scripts and Executables" execution permission, ... script by their respective script engines, and all URLs that are .COM, .EXE, ... If you make a request to the CGI script and you get the download dialog, ...
    (microsoft.public.inetserver.iis.security)
  • Re: [opensuse] perl under apache2 downloads scripts instead of executiing
    ... 3.I had intially softlinked ledgersmb to /srv/www/htdocs but removed the ... You need to add an apache directive to allow script execution in the ... bad idea to allow script execution in the htdocs document tree. ...
    (SuSE)
  • Creating a waitbar
    ... opens up with Stop processing..the script gets executed... ... % A data structure containing a field of matlab commands 'scriptcmds' ... % line_num is the order of execution. ...
    (comp.soft-sys.matlab)
  • [Full-disclosure] Original Photo Gallery Remote Command Execution
    ... The systems consist of two parts: "a client side script to scale your ... Upgrade to the new version 0.11.3 witch fix this vulnerability. ... Disable execution using disable_functions in php.ini. ... VENDOR RESPONSE ...
    (Full-Disclosure)