From 4c56d7ac43028110ad5d313ffa422bb226d15114 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sun, 9 Jul 2006 17:36:29 +0000 Subject: Added "fileget" configuration (via tftp from ~/tftpboot/client-config/*), see BootRootVerzeichnisse and ClientConfiguration, fix for dhclient (multiple) config entries in machine-setup ... git-svn-id: http://svn.openslx.org/svn/openslx/ld4@280 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initrd/initrd-stuff/init | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'initrd/initrd-stuff/init') diff --git a/initrd/initrd-stuff/init b/initrd/initrd-stuff/init index 06be1eba..44c3fe27 100755 --- a/initrd/initrd-stuff/init +++ b/initrd/initrd-stuff/init @@ -2,12 +2,12 @@ # Description: main script for new type of initial ramdisk for # linux diskless clients version 4 # -# Author(s): Dirk von Suchodoletz , 05-07-2006 +# Author(s): Dirk von Suchodoletz , 09-07-2006 # # Copyright: (c) 2006 - RZ Universitaet Freiburg # (c) 2006 - odlx.org project # -# Version: 0.2.5a +# Version: 0.2.6a # functions common for all distros, messages contains all error and info # output @@ -216,15 +216,15 @@ if [ -n "$IPINFO" ] ; then val=${val#*:} ; i=$(expr $i - 1); done; echo $val|sed "s/:.*//"; } - IP=$(getip 1) - SERVER=$(getip 2) - GW=$(getip 3) - NM=$(getip 4) - echo -e "# ip configuration written by $0 script\nclientip=$IP\n\ -sub_netmask=$NM\ngateway=$GW\nserverip=$SERVER" \ + clientip=$(getip 1) + serverip=$(getip 2) + gateway=$(getip 3) + subnet_mask=$(getip 4) + echo -e "# ip configuration written by $0 script\nclientip=$clientip\n\ +subnet_mask=$sub_netmask\ngateway=$gateway\nserverip=$serverip" \ >>/etc/machine-setup # set static ip address via function ipsetup - ipsetup $IP $NM $GW 255.255.255.255 eth0 + ipsetup $clientip $subnet_mask $gateway 255.255.255.255 eth0 else noipyet="yes" fi -- cgit v1.2.3-55-g7522