#!/bin/bash pushd /etc/sysconfig/ >/dev/null || exit 1 cat > ifconfig.eth0 << "EOF" ONBOOT=yes IFACE=eth0 SERVICE=ipv4-static IP=192.168.1.196 GATEWAY=192.168.1.1 PREFIX=24 BROADCAST=192.168.1.255 EOF popd >/dev/null || exit 1