User Tools

Site Tools


os:linux:centos:kspostscript

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
os:linux:centos:kspostscript [2011/10/27 20:32] – created jayos:linux:centos:kspostscript [2011/10/27 20:41] – [%post] jay
Line 20: Line 20:
 opts="" opts=""
 answer="n" answer="n"
 +device="eth0"
 hwaddr=`ifconfig $device | grep -i hwaddr | sed -e 's#^.*hwaddr[[:space:]]*##I'` hwaddr=`ifconfig $device | grep -i hwaddr | sed -e 's#^.*hwaddr[[:space:]]*##I'`
 dns1="205.171.2.65" dns1="205.171.2.65"
Line 29: Line 30:
  
 while [ "x$answer" != "xy" ] && [ "x$answer" != "xY" ] ; do while [ "x$answer" != "xy" ] && [ "x$answer" != "xY" ] ; do
 +        echo -n "enter hostname: "; read hostname
         echo -n "enter ip: "; read ip         echo -n "enter ip: "; read ip
         echo -n "enter netmask: "; read netmask         echo -n "enter netmask: "; read netmask
Line 63: Line 65:
 echo DNS1=$dns1 >> $scrFile echo DNS1=$dns1 >> $scrFile
 echo DNS2=$dns2 >> $scrFile echo DNS2=$dns2 >> $scrFile
 +
 +if [ "x$opts" != "x" ] ; then
 +        echo 'ETHTOOL_OPTS="'"$opts"'"' >> $scrFile
 +fi
 +
  
 %end %end
os/linux/centos/kspostscript.txt · Last modified: 2012/04/08 16:17 by jay