I have made a short script to read for static or dynamic ip, I am playing with kickstart too for another project of mine :), I haven't tested this in a kickstar file but I am confident it will work with minor tweaks

you only have to disable any kickstart options about the network



Jake Vickers wrote:
[EMAIL PROTECTED] wrote:
Hello

I have just started to learn about qmailtoaster after having a qmailrocks
based server for a few years.

The QMT-iso caught my attention being a nice and easy install/config of
qmail.
But I still have some troubles getting it to work.

1. I have a static ip, and the instruction for this doesn´t work for me.
This is a problem as the installation just continues even if the internet
isn´t there. I can manually add static support with setup.

2. I get some problems with openssl, but I can do yum install openssl and
this is fixed.

3. My worst problem so far is that the MYSQLD doesn´t run at all after
installation.
A service mysqld status gives mysqld dead but subsys locked.
I am not a mysql guru but something tells me that the password is wrong
for this.
I am not able to figure out where the config for this lies.
When the script cnt40-svcs is run I therefore get a lot of errors
depending of that mysqld isn´t running.
The Kickstart application does not allow for setting an IP address during installation. I've been searching for a while now trying to find a way to do this. Kickstart either allows DHCP, or setting of a static IP in the file. Nothing else. My setting a static in the kickstart won't do anyone any good since your IP will undoubtably be different. I'm trying some hacks to work around this as we speak. I'm hoping to have it resolved in the 1.1 release.
http://wiki.qmailtoaster.com/index.php/QMT-ISO
The Mysql password is "v2gnu-qmailtoaster" unless you changed it.

#!/bin/sh
#
# made by Lucian Cristian
#
#
#if the network adapter is not up I don't know how to extract hardware address
#so I skiped HWADDR option
#the filename is test, it needs to be replaced by ifcfg-$eth
#and then copyed in to /etc/sysconfig/network-scripts/
#
#like cp -f ifcfg-$eth /etc/sysconfig/network-scripts/
#

start=n
while [ "$start" == "n" ]
do
echo "for static IP pres [s] any key for dhcp !"
read option
if [ "$option" == "s" ]
then
    echo
    echo "you have selected static ip config !"
    echo
    echo "if is not ok press \"n\" "
    echo
read start
    else
    echo
    echo "you have selected dhcp config !"
    echo "if is not ok press \"n\" "
    echo
read start
fi
done


loop=n
if [ "$option" == "s" ]

then
#static ip config
while [ "$loop" == "n" ]

do
    echo GATEWAY:
        read gw
    echo "ethernet adapter, ex:eth0 or eth1 : "
        read eth
    echo IPADDRESS:
        read ip
    echo NETMASK:
        read netm
    echo BROADCAST:
        read broad
#this needs atention..
#hw=`ifconfig | grep eth0 | grep HWaddr`

echo
echo network settings:
echo

echo "   GATEWAY=$gw"
echo "   BOOTPROTO=none"
#echo HWADDR=$hw
echo "   TYPE=Ethernet"
echo "   DEVICE=$eth"
echo "   MTU=1500"
echo "   NETMASK=$netm"
echo "   BROADCAST=$broad"
echo "   IPADDR=$ip"
echo "   ONBOOT=yes"

echo "are they ok ? pres \"n\" to retry ! any key to continue"
read loop
done

    echo GATEWAY=$gw > test
    echo BOOTPROTO=none >> test
    #echo HWADDR=$hw
    echo TYPE=Ethernet >> test
    echo DEVICE=$eth >> test
    echo MTU=1500 >> test
    echo NETMASK=$netm >> test
    echo BROADCAST=$broad >> test
    echo IPADDR=$ip >> test
    echo ONBOOT=yes >> test




    else
#dhcp config
while [ "$loop" == "n" ]
do
    echo " dhcp settings:"
    echo "ethernet adapter, ex:eth0 or eth1 : "
        read eth
        echo
        echo "   network settings: "
        echo
            echo ONBOOT=YES
            echo BOOTPROTO=dhcp
            echo DEVICE=$eth

echo
echo "   are these ok ? press \"n\" to retry ! any key to continue"
echo

read loop
done
        echo ONBOOT=YES > test
        echo BOOTPROTO=dhcp >> test
        echo DEVICE=$eth >> test
#       hw=`ifconfig | grep eth0 | grep HWaddr`




fi


---------------------------------------------------------------------
     QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to