Personal tools
You are here: Home 开发 GNOME 2.12 el4.sh
Document Actions

el4.sh

by 杨红 last modified 2005-11-25 10:29

自动安装 el4u1

Click here to get the file

Size 1 kB - File type text/x-sh

File contents

#!/bin/sh

echo "Download Red Hat EL4 update1..."
wget ftp://192.168.28.1/el4/el4u1/zras4u1a.iso
wget ftp://192.168.28.1/el4/el4u1/zras4u1b.iso
wget ftp://192.168.28.1/el4/el4u1/zras4u1c.iso
wget ftp://192.168.28.1/el4/el4u1/zras4u1d.iso

mkdir /tmp/iso
mount -o loop zras4u1a.iso /tmp/iso

cp /tmp/iso/images/pxeboot/vmlinuz /boot/vmlinuz-el4
cp /tmp/iso/images/pxeboot/initrd.img /boot/initrd-el4.img

cat >> /boot/grub/menu.lst << EOF
title RedHat EL4 Installer 
        root (hd0,0)
        kernel /boot/vmlinuz-el4
        initrd /boot/initrd-el4.img
EOF

echo "Check the grub.conf then REBOOT to install EL4 plz"

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: