Modern systems use xinetd anyway, so this code just creates useless
junk and error messages on installation.
XCOMM check for existence of /etc/inetd.conf
XCOMM
- if [ ! -f $FILE ] # highly unlikely
+ if [ ! -f $FILE ] # highly unlikely (in the 1990s, quite likely in 2018)
then
- echo "" >$FILE
+ return
fi
XCOMM
FILE=/etc/inetd.conf
TMPFILE=/tmp/inetd.conf
+ if [ ! -f $FILE ] # highly unlikely (in the 1990s, quite likely in 2018)
+ then
+ return
+ fi
+
awk '{if ($1 == "dtspc")
;
else
XCOMM check for existence of /etc/inetd.conf
XCOMM
- if [ ! -f $FILE ] # highly unlikely
+ if [ ! -f $FILE ] # highly unlikely (in the 1990s, quite likely in 2018)
then
- echo "" >$FILE
+ return
fi
XCOMM
TMPFILE=/tmp/inetd.conf
CMSD=CDE_INSTALLATION_TOP/bin/rpc.cmsd
+ if [ ! -f $FILE ] # highly unlikely (in the 1990s, quite likely in 2018)
+ then
+ return
+ fi
+
HASH first remove the CDE rpc.cmsd entry
awk -v cmsd=$CMSD \
XCOMM check for existence of /etc/inetd.conf
XCOMM
- if [ ! -f $FILE ] # highly unlikely
+ if [ ! -f $FILE ] # highly unlikely (in the 1990s, quite likely in 2018)
then
- echo "" >$FILE
+ return
fi
XCOMM
TMPFILE=/tmp/inetd.conf
TTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserver
+ if [ ! -f $FILE ] # highly unlikely (in the 1990s, quite likely in 2018)
+ then
+ return
+ fi
+
awk -v ttdb=$TTDBSERVERD \
'{if ($1 == "100083/1" && $6 == ttdb)
;