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