-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkickstart
More file actions
30 lines (30 loc) · 702 Bytes
/
kickstart
File metadata and controls
30 lines (30 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
echo "Enter the IP Address for the Client:"
read IPADDR
echo "Enter the MAC Address for the Client:"
read MACADDR
echo "Enter the Hostname:"
read HOSTNAME
echo "Enter the Netmask:"
read NETMASK
echo "Enter the Default Gateway:"
read GATEWAY
echo "Enter the DNS Address:"
read DNS1
echo "Enter the DNS Address:"
read DNS2
echo $IPADDR
echo $MACADDR
echo $HOSTNAME
echo $NETMASK
echo $GATEWAY
echo $DNS1
echo $DNS2
echo "Thank You"
echo "DNS1=$DNS1" >> /etc/sysconfig/network-scripts/ifcfg-eth0
echo "DNS2=$DNS2" >> /etc/sysconfig/network-scripts/ifcfg-eth0
if cat /etc/sysconfig/network-scripts/ifcfg-eth0 |grep PEERDNS=YES
then
:
else
echo "PEERDNS=YES" >> /etc/sysconfig/network-scripts/ifcfg-eth0
fi