Jumpstart - finishscripts

From: M N (badfinger77@yahoo.com)
Date: Sun Aug 07 2005 - 17:42:35 EDT


Hello all :)

First of all, thanks for helping me out last time. Now
I have another problem and after trying several ways
to find a workaround or to fix it in general, I just
failed.

This is all done for a project I'm doing. I'm a
trainee at Siemens and this will be my final project.
Now I have this finish script and even as it works,
when I try these commands on the installed client, I
can't get them to work as a finish-script. I'm totally
new to scripting and so I avoided variables and so on.

It seems, that somehow there is a problem, that I'm
not running the script as root, I guess. The general
idea behind it, is adding lines to /etc/hosts and
creating the files /etc/defaultdomain and
/etc/defaultrouter. This seems not to work, don't know
why.

Than I try to mount a shared (NFS) resource, where I
wanna copy the login from and a modified ftpusers (so
root can login). Does not happen ;(

Here's the script:

#!/bin/sh

# Finish-Script by Marcel Nebeling
# Last edit:
# Creating the defaultdomain - entry

### Starting the nfs.client ###
/etc/init.d/nfs.client start

echo "testlab.abg.siemens.de" > /etc/defaultdomain
echo "192.168.0.254" > /etc/defaultrouter

### Editing the /etc/hosts on the client to add the
install-server ###
echo "192.168.0.235 install-serv loghost" >
/etc/hosts

### Mounting the directory with the config-files from
install server ###
mkdir /mnt/install_data
mount -F nfs install-serv:/opt/resources/config-files
/mnt/install_data
cd /mnt/install_data
cp ftpuser /etc/ftpusers
cp login /etc/default/login

### Mounting the directory of the patches from install
server ###
mount
install-serv:/opt/resources/patches/8_Recommended
/mnt;cd /mnt

### Start of the installer ###
./install_cluster -q

### Reboot ###
init 6

Please try to help me out here, or give me an advice,
why it does not might work. Would be really
appreciated.

Thank you all in advance,
Marcel Nebeling

                
____________________________________________________
Start your day with Yahoo! - make it your home page
http://www.yahoo.com/r/hs
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:31:15 EDT