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

RE: Startup scripts (problem again)



Jonas,

   It works if I do manually this:

cp -R /mnt/flash/html/* /var/tmp/

but it doen't when included in a script. The section of inittab that contains the added lines is:
------------------------------------
# -n means no daemon
inetd:3:once:/sbin/inetd -n

# dnrd:3:once:/bin/dnrd -i eth0

##############################
# Ficheros aņadidos por PACO #
##############################
#Creamos directorios y copiamos los ficheros
myid:3:wait:/bin/cp -R /mnt/flash/html/* /var/tmp/
# end of added lines
######################

# Web server
boa:3:respawn:/bin/boa -c /etc/httpd

# Enable login from serial port
# agetty:3:respawn:/sbin/agetty -L ttyS2 115200

# We are using in.telnetd from inetd so we do not want telnetd running.
# telnetd:3:once:/bin/telnetd
--------------------------------------------

We are using devboard_lx 2_1_0
The script is executing since the directory structure is created in /tmp. But the files are not copied!
Any idea?

   Thanks
     Francisco