Working with boot.local
Hello,
I recently added a line of code to my boot.local file which works perfectly, since it's a simple echo command. However, what I'd also like to do within that file is something like the following: #launch the asterisk console ./asterisk -r # wait 10 seconds wait 10 # type reload at the console prompt echo reload #hit the enter key to reload asterisk enter This is the functionality I require. I'm not sure if I'll need to put it into a script file and then run via symlink or whether I can put it in just as code. I don't want to fool with it without asking first in case I mess something up. Anyone have any input as the best way to do this? Thanks!! NiallC |
I'm running on suse 10, but I just entered the command(s) that I wanted to run. Mine looks like this, I needed to add a resolution my bios does not support. Good luck!
#! /bin/sh # # Copyright (c) 2002 SuSE Linux AG Nuernberg, Germany. All rights reserved. # # Author: Werner Fink <werner@suse.de>, 1996 # Burchard Steinbild, 1996 # # /etc/init.d/boot.local # # script with local commands to be executed from init on system startup # # Here you should add things, that should happen directly after booting # before we're going to the first run level. # 855resolution 5a 1280 768 |
What is asterisk? Does it require X? If it requires X then boot.local is definitely not what you want to edit.
Anyway, it is a very bad tactic to put "wait 10" in a boot script because your boot process will be automatically 10 seconds longer. In addition, the syntax ./asterisk does not seem correct because you don't actually know if asterisk is in the working directory. (You don't even know the working directory). I suggest using full path. |
Yes, I understand about the path, but is the rest of my syntax correct, would it actually work?
|
Well, you'll only know for sure if you try it!
|
It will probably work. There is nothing to be afraid of. Try it!
If it doesn't work, it will just throw some errors and continue. |
All times are GMT -5. The time now is 09:09 AM. |