any way to stop boot2 from waiting for keypress at system startup

2013-07-02 Thread takCoder
Hi Everyone,

i wanna stop boot2 from getting a input string to change default boot
point.. is there any way around, other than changing boot2.c source code to
disable this feature??

As you may know, on system-startup, if you press any key, you will see the
following prompt, waiting for you to enter related string:
FreeBSD/x86 boot
Default: 0:ad(0,a)
boot:

I checked it and found out that i can change boot2.c file to disable this
section.. but I'd rather find another way.. Would you please let me know
whether there are any other ways to do so?

Thank you all in advance :)

Best Regards,
takCoder
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: any way to stop boot2 from waiting for keypress at system startup

2013-07-02 Thread Polytropon
On Tue, 2 Jul 2013 11:05:22 +0430, takCoder wrote:
 Hi Everyone,
 
 i wanna stop boot2 from getting a input string to change default boot
 point.. is there any way around, other than changing boot2.c source code to
 disable this feature??
 
 As you may know, on system-startup, if you press any key, you will see the
 following prompt, waiting for you to enter related string:
 FreeBSD/x86 boot
 Default: 0:ad(0,a)
 boot:
 
 I checked it and found out that i can change boot2.c file to disable this
 section.. but I'd rather find another way.. Would you please let me know
 whether there are any other ways to do so?

Without having checked it, but is this what you are searching for?

In /boot/loader.conf:

autoboot_delay=-1

From /boot/defaults/loader.conf:

Delay in seconds before autobooting,
set to -1 if you don't want user to be
allowed to interrupt autoboot process and
escape to the loader prompt, set to
NO to disable autobooting

I'm using autoboot_delay=1 to limit the time which the system
is waiting before continuing the boot process.



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: any way to stop boot2 from waiting for keypress at system startup

2013-07-02 Thread takCoder
Thank you for your quick reply. :)

Unfortunately, no.. the option you are talking about is for limitting or
disabling beastie menu waiting time, and i am using the option you mention
as well..

I wait to disable a feature one step before that.. before even loading
kernel.. i just don't know what exactly its name is.. but it's just at the
beginning of boot2 procedure; it waits for 3 seconds for user input and if
you press any key, it shows you the prompt i mentioned and so on..
if there is no key-press,  the normal process will go on..

Best Regards,
t.a.k


On Tue, Jul 2, 2013 at 11:10 AM, Polytropon free...@edvax.de wrote:

 On Tue, 2 Jul 2013 11:05:22 +0430, takCoder wrote:
  Hi Everyone,
 
  i wanna stop boot2 from getting a input string to change default boot
  point.. is there any way around, other than changing boot2.c source code
 to
  disable this feature??
 
  As you may know, on system-startup, if you press any key, you will see
 the
  following prompt, waiting for you to enter related string:
  FreeBSD/x86 boot
  Default: 0:ad(0,a)
  boot:
 
  I checked it and found out that i can change boot2.c file to disable this
  section.. but I'd rather find another way.. Would you please let me know
  whether there are any other ways to do so?

 Without having checked it, but is this what you are searching for?

 In /boot/loader.conf:

 autoboot_delay=-1

 From /boot/defaults/loader.conf:

 Delay in seconds before autobooting,
 set to -1 if you don't want user to be
 allowed to interrupt autoboot process and
 escape to the loader prompt, set to
 NO to disable autobooting

 I'm using autoboot_delay=1 to limit the time which the system
 is waiting before continuing the boot process.



 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: any way to stop boot2 from waiting for keypress at system startup

2013-07-02 Thread takCoder
i found the answer! if i add a -n parameter to /boot.config file, the
mentioned feature will be disabled..


On Tue, Jul 2, 2013 at 11:16 AM, takCoder tak.offic...@gmail.com wrote:

 Thank you for your quick reply. :)

 Unfortunately, no.. the option you are talking about is for limitting or
 disabling beastie menu waiting time, and i am using the option you mention
 as well..

 I wait to disable a feature one step before that.. before even loading
 kernel.. i just don't know what exactly its name is.. but it's just at the
 beginning of boot2 procedure; it waits for 3 seconds for user input and if
 you press any key, it shows you the prompt i mentioned and so on..
 if there is no key-press,  the normal process will go on..

 Best Regards,
 t.a.k


 On Tue, Jul 2, 2013 at 11:10 AM, Polytropon free...@edvax.de wrote:

 On Tue, 2 Jul 2013 11:05:22 +0430, takCoder wrote:
  Hi Everyone,
 
  i wanna stop boot2 from getting a input string to change default boot
  point.. is there any way around, other than changing boot2.c source
 code to
  disable this feature??
 
  As you may know, on system-startup, if you press any key, you will see
 the
  following prompt, waiting for you to enter related string:
  FreeBSD/x86 boot
  Default: 0:ad(0,a)
  boot:
 
  I checked it and found out that i can change boot2.c file to disable
 this
  section.. but I'd rather find another way.. Would you please let me know
  whether there are any other ways to do so?

 Without having checked it, but is this what you are searching for?

 In /boot/loader.conf:

 autoboot_delay=-1

 From /boot/defaults/loader.conf:

 Delay in seconds before autobooting,
 set to -1 if you don't want user to be
 allowed to interrupt autoboot process and
 escape to the loader prompt, set to
 NO to disable autobooting

 I'm using autoboot_delay=1 to limit the time which the system
 is waiting before continuing the boot process.



 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: any way to stop boot2 from waiting for keypress at system startup

2013-07-02 Thread Polytropon
On Tue, 2 Jul 2013 15:18:04 +0430, takCoder wrote:
 i found the answer! if i add a -n parameter to /boot.config file, the
 mentioned feature will be disabled..

Sorry for my confusion. The option you've successfully found
is documented in man 8 boot (which also provides a short
description of the stages performed at system boot). That's
why it's good to know how the different components of the
boot process are named so it becomes more logical where to
search. :-)

From the manual page:

-nignore key press to interrupt boot before loader(8)
  is invoked.

Explained:

 However, it is possible to dispense with the third stage altogether,
 either by specifying a kernel name in the boot block parameter file,
 /boot.config, or, unless option -n is set, by hitting a key during a
 brief pause (while one of the characters -, \, |, or / is displayed)
 before loader(8) is invoked.  Booting will also be attempted at stage
 two, if the third stage cannot be loaded.

It's always good to know where thine documentation is. ;-)



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: any way to stop boot2 from waiting for keypress at system startup

2013-07-02 Thread takCoder
Yes you are right :)
If i knew the feature's name, it would be easier to find this option out..
Actually i found mentioned flag while tracing boot2.c code...

Anyway, Thank you for your complete reply :)


On Wed, Jul 3, 2013 at 6:35 AM, Polytropon free...@edvax.de wrote:

 On Tue, 2 Jul 2013 15:18:04 +0430, takCoder wrote:
  i found the answer! if i add a -n parameter to /boot.config file, the
  mentioned feature will be disabled..

 Sorry for my confusion. The option you've successfully found
 is documented in man 8 boot (which also provides a short
 description of the stages performed at system boot). That's
 why it's good to know how the different components of the
 boot process are named so it becomes more logical where to
 search. :-)

 From the manual page:

 -nignore key press to interrupt boot before loader(8)
   is invoked.

 Explained:

  However, it is possible to dispense with the third stage altogether,
  either by specifying a kernel name in the boot block parameter file,
  /boot.config, or, unless option -n is set, by hitting a key during a
  brief pause (while one of the characters -, \, |, or / is displayed)
  before loader(8) is invoked.  Booting will also be attempted at stage
  two, if the third stage cannot be loaded.

 It's always good to know where thine documentation is. ;-)



 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org