[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Ejecutando post-arranque del sistema



Hola.

Esta bien que pongas el fichero en /etc/rc.boot/, pero para que un
fichero de texto se combien ta en un script ejecutable debes:

1. Colocar en la primera line algo como esto:

#!/[direccion absoluta del interpre]

en el caso de bash.

#!/bin/sh

2. Debe tener permiso para ejecutarse

# chmod a+x fichero

3. Fijate por la dudas si en /etc/init.d/rcS esta una linea como esta:

#
#       For compatibility, run the files in /etc/rc.boot too.
#
[ -d /etc/rc.boot ] && run-parts /etc/rc.boot

Fijate y contame. Suerte

On Fri, Sep 12, 2003 at 09:25:32PM +0200, Joan Tur wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Buenas.
> 
> Quiero ejecutar un comando en el arranque del equipo; he puesto la línea de 
> comando en un fichero de texto, y éste lo he dejado en /etc/rc.boot/
> 
> Pero no se ejecuta   8-?   Donde miro??
> 
> Gracias  ;)
> - -- 
>   Joan Tur. Eivissa-Spain
> Jabber, Yahoo & AIM: quini2k
>     www.ClubIbosim.org
> Linux: usuari registrat 190.783
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.3 (GNU/Linux)
> 
> iD8DBQE/Yh2uok8j9RhtetwRAvlYAJ97l+v1I/mg0Yj5SttFBpRfK7zDWACghzSp
> p3RG2aYFNHeyavxBtMqMK1k=
> =2Ckj
> -----END PGP SIGNATURE-----
> 
> 
> --
> To UNSUBSCRIBE, email to debian-user-spanish-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 
> 

-- 

      _   _____
     | | |_   _| -+[ Juan Ismael ]+-
  _  | |   | |   -+[ juan_ismael@datafull.com ]+-
 | |_| |  _| |_
 |_____| |_____|



Reply to: