i.dhcpinittab revision 7c478bd95313f5f23a4c958a745db2134aa03244
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#!/bin/sh
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License, Version 1.0 only
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# (the "License"). You may not use this file except in compliance
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0662ed52e814f8f08ef0e09956413a792584eddffuankg# or http://www.opensolaris.org/os/licensing.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
70953fb44a7140fe206c3a5f011e24209c8c5c6abnicholes#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# CDDL HEADER END
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#pragma ident "%Z%%M% %I% %E% SMI"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Copyright (c) 2001 by Sun Microsystems, Inc.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# All Rights Reserved.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeswhile read src dest; do
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes if [ ! -f $dest ] ; then
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes # no existing version, just copy in new one
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes cp -p $src $dest
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes else
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes cp -p $src /var/run/inittab.tmp
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes grep -v "^#" $dest| grep SITE >> /var/run/inittab.tmp
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes mv /var/run/inittab.tmp $dest
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes fi
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesdone
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesexit 0
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes