boot script

cpm@

Moderator
Moderator
Developer
I need help to write a boot script.

Where must I place the command?

[cmd=]pciconf -w pci0:7:6:2 76 34[/cmd]

It is necessary that this shell script starts during boot.
 
Easiest would be to put it in root's crontab (crontab -e as root) at the @reboot time, or in /etc/rc.local (you'll need to create it). Make sure you use the full path name for the script, and for the commands in it.
 
I try in the crontab entry

Code:
@reboot exec /path/to/file.sh &

file.sh contains

Code:
pciconf -w -b pci0:7:6:2 76 34

But... no luck x(
 
Partially I solved this thread

I create /etc/rc.local

Code:
#!/bin/sh

/bin/sh /home/cjpm/sdhc.sh

Script start at boot time but I need that my script run before or same time /boot/loader.conf

Any suggestion are welcome
 
Posting the latest developments.

cpu82 said:
Partially I solved this thread

I create /etc/rc.local

Code:
#!/bin/sh

/bin/sh /home/cjpm/sdhc.sh

Script start at boot time but I need that my script run before or same time /boot/loader.conf

Any suggestion are welcome

When I insert the SD card it is detected correctly, but I'm still not able to mount the file system. I think it is necessary that the startup script should be started before loading modules in this order.

/boot/loader.conf

Code:
mmcsd_load="YES"
mmc_load="YES"
sdhci_load="YES"
 
Back
Top