DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: @ T c

⟦02770d51a⟧ TextFile

    Length: 819 (0x333)
    Types: TextFile
    Notes: @(#)chgstate.sh 13.2 (RC International) 91/07/25
    Names: »chgstate«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/sadm/sysadm/bin/chgstate« 

TextFile

#	@(#)chgstate.sh	13.2 (RC International) 91/07/25

#	Copyright (c) 1984, 1986, 1987, 1988, 1989, 1990 AT&T
#	  All Rights Reserved

#	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
#	The copyright notice above does not evidence any
#	actual or intended publication of such source code.

#!/sbin/sh
#ident	"@(#)oamintf:machinemgmt/chgstate.sh	1.4"

################################################################################
#	Module Name: chgstate.sh
#	Inputs:
#		$1 - shutdown option
#		$2 - shutdown time
#		$3 - shutdown message
################################################################################

# Run the process in background, give the interface 5 seconds to exit,
# send all output to /dev/null so as not to confuse fmli

nohup sh <<! > /dev/null 2>&1 &
sleep 5
cd /
shutdown $1 $2 $3
!