is_config_byhand -f file
If sysconfig is called with the force option ( -f ), is_sysconfig_byhand returns False for all files queried.
Create a system dependent /etc/issue file.
Hostname=`hostname`
Configuration='TEST CONFIGURATION - ACME, Datacenter Balsberg'
file=$SYSCONFIG_ROOTDIR/etc/issue
if [ "`is_config_byhand -f $file`" = False ]; then
cat << EOM | apply2file -o -u bin -g bin -p 444 -f $file
`banner $Hostname`
$Configuration
#####################################################################
# This is an ACME protected system. #
# This system is for the use of authorized users only. #
# Individuals using this computer system without authority, or in #
# excess of their authority, are subject to having all of their #
# activities on this system monitored and recorded by system #
# personnel. #
# #
# In the course of monitoring individuals improperly using this #
# system, or in the course of system maintenance, the activities #
# of authorized users may also be monitored. #
# #
# Anyone using this system expressly consents to such monitoring #
# and is advised that if such monitoring reveals possible #
# evidence of criminal activity, system personnel may provide the #
# evidence of such monitoring to law enforcement officials. #
#####################################################################
EOM
fi
This is free software; see edrc/doc/COPYING for copying conditions. There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.