cxs7225032 发表于 2018-8-23 07:56:27

kickstart 无人值守安装系统shell脚本

  没有多大技术含量,就是将之前的这篇文章http://shanker.blog.51cto.com/1189689/815403写成shell了。
  


[*]#!/bin/bash
[*]#CentOS6.2+PXE+Apache+DHCP+tftp+kickstart
[*]#Author:shanker
[*]#Date:2012/05/12
[*]if [ "$UID"-ne 0 ]
[*]then
[*]    echo "you must be root to run it"
[*]    exit 0
[*]fi
[*]yum -y install httpd* tftp-server system-config-kickstart dhcp syslinux
[*]mount /dev/cdrom /mnt
[*]cp -rf /mnt/* /var/www/html
[*]
[*]#configure tftp server
[*]cat >/etc/xinetd.d/tftp
页: [1]
查看完整版本: kickstart 无人值守安装系统shell脚本