Date: Thu, 7 Oct 2004 11:00:06 -0700 From: "Kelly Hall" <khall@stbernard.com> To: <freebsd-hackers@freebsd.org> Subject: BTX scripting help Message-ID: <E7E213858379814A9AE48CA6754F5ECB030FD340@mail01.stbernard.com>
next in thread | raw e-mail | index | archive | help
Hi Folks, =20 I'm trying to automate a sequence of BTX commands and I'm hitting some snags. I've got some minor forth experience, but it isn't enough. =20 My machine uses the standard bootloader and doesn't present a menu for the user. By default, the machine boots a standard kernel and fs-image file and everything is happy. Sometimes, though, I want my users to be able to boot an alternate kernel and fs-image. To do this, what they do now is: - wait for the default kernel to start loading - hit the space bar - BTX breaks out and gives them a prompt - they type four commands: - unload - load /kernel - load -t md_image /altfs-image - boot I'd like to replace those four commands with one command to make things nicer for them. =20 So I tried to define the obvious forth word: : altboot unload load /kernel load -t md_image /altfs-image boot ; which fails to compile because /kernel isn't a word. These all compile, but reboot when invoked : altboot unload s" /kernel" load ; \ reboots the box : altboot unload load s" /kernel" ; \ reboots the box : altboot unload ." /kernel" load ; \ reboots the box : altboot unload load ." /kernel" ; \ reboots the box =20 I'm stumped. Any suggestions? =20 Kelly
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E7E213858379814A9AE48CA6754F5ECB030FD340>