Networking Forums

Networking Forums > Computer Networking > Linux Networking > Command in NetBSD to make script bootable?

Reply
Thread Tools Display Modes

Command in NetBSD to make script bootable?

 
 
cid
Guest
Posts: n/a

 
      11-06-2005, 05:11 PM
Command in NetBSD to make script bootable?

hello,

I am trying an app based on NetBSD ("ghost for unix"), that i would
like to add a script to make the cloning of partition easier or more
automatic.

eg. right now, everytime I boot off the install cd or floppy, i need
to set the client IP address, server ftp address, etc. I would like
to make a basic script eg.

#bash

ifconfig eth0 192.168.0.1 netmask 255.255.255.0

then the next line should read

uploaddisk test.img 192.168.0.2 sd0 ( command in N4U to compress and
upload image to ftp server.

thats all.

in linux i know i can make the script bootable to chmod +x to the file
name.. but no idea where to start in Netbsd, any info is highly
appreciated.

 
Reply With Quote
 
 
 
 
Bill Marcum
Guest
Posts: n/a

 
      11-06-2005, 06:48 PM
On Sun, 06 Nov 2005 18:11:39 GMT, cid
<(E-Mail Removed)> wrote:
> Command in NetBSD to make script bootable?
>
> hello,
>
> I am trying an app based on NetBSD ("ghost for unix"), that i would
> like to add a script to make the cloning of partition easier or more
> automatic.
>
> eg. right now, everytime I boot off the install cd or floppy, i need
> to set the client IP address, server ftp address, etc. I would like
> to make a basic script eg.
>
> #bash
>
> ifconfig eth0 192.168.0.1 netmask 255.255.255.0
>
> then the next line should read
>
> uploaddisk test.img 192.168.0.2 sd0 ( command in N4U to compress and
> upload image to ftp server.
>
> thats all.
>
> in linux i know i can make the script bootable to chmod +x to the file
> name.. but no idea where to start in Netbsd, any info is highly
> appreciated.
>

chmod +x works to make a script executable in any Unix or Unix-like
operating system.


--
FORCE YOURSELF TO RELAX!
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      11-06-2005, 07:10 PM
In comp.os.linux.networking cid <(E-Mail Removed)>:
> Command in NetBSD to make script bootable?


> hello,


> I am trying an app based on NetBSD ("ghost for unix"), that i would


You can use 'dd' on *BSD to make an image out of a disk, like on
Linux and other unix.

> like to add a script to make the cloning of partition easier or more
> automatic.


> eg. right now, everytime I boot off the install cd or floppy, i need
> to set the client IP address, server ftp address, etc. I would like
> to make a basic script eg.


[..]

> in linux i know i can make the script bootable to chmod +x to the file
> name.. but no idea where to start in Netbsd, any info is highly
> appreciated.


Works the same on any unix, basic things are more or less the
same across all of them. ;-)

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 1: clock speed
 
Reply With Quote
 
John Thompson
Guest
Posts: n/a

 
      11-08-2005, 03:05 AM
On 2005-11-06, cid <(E-Mail Removed)> wrote:

> Command in NetBSD to make script bootable?
>
> hello,
>
> I am trying an app based on NetBSD ("ghost for unix"), that i would
> like to add a script to make the cloning of partition easier or more
> automatic.
>
> eg. right now, everytime I boot off the install cd or floppy, i need
> to set the client IP address, server ftp address, etc. I would like
> to make a basic script eg.
>
> #bash


You might want #!/bin/bash instead

> in linux i know i can make the script bootable to chmod +x to the file
> name.. but no idea where to start in Netbsd, any info is highly
> appreciated.


Works the same in NetBSD.

--

John ((E-Mail Removed))
 
Reply With Quote
 
cid
Guest
Posts: n/a

 
      11-09-2005, 01:24 AM
thanks guys!


On Tue, 08 Nov 2005 04:05:08 GMT, John Thompson
<(E-Mail Removed)> wrote:

>On 2005-11-06, cid <(E-Mail Removed)> wrote:
>
>> Command in NetBSD to make script bootable?
>>
>> hello,
>>
>> I am trying an app based on NetBSD ("ghost for unix"), that i would
>> like to add a script to make the cloning of partition easier or more
>> automatic.
>>
>> eg. right now, everytime I boot off the install cd or floppy, i need
>> to set the client IP address, server ftp address, etc. I would like
>> to make a basic script eg.
>>
>> #bash

>
>You might want #!/bin/bash instead
>
>> in linux i know i can make the script bootable to chmod +x to the file
>> name.. but no idea where to start in Netbsd, any info is highly
>> appreciated.

>
>Works the same in NetBSD.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command or Script Mauricio Porte Wireless Networks 0 02-28-2010 04:57 PM
Starting preconfigured PPTP VPN connection from a script / command Juha Windows Networking 1 10-31-2008 06:15 PM
How to make login script work when using WPA2 in an office? Hari Haran Wireless Networks 5 10-15-2007 10:15 PM
netBSD and hostap? grus Wireless Internet 0 07-03-2006 09:49 PM
How to make kppp script click the continue button? mmasroorali@cse.buet.ac.bd Linux Networking 1 06-01-2006 06:17 PM



1 2 3 4 5 6 7 8 9 10 11