1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-15 04:32:24 +00:00

installCDE/linux: don't try to edit/modify /etc/inetd.conf if it does not exist

Modern systems use xinetd anyway, so this code just creates useless
junk and error messages on installation.
This commit is contained in:
Jon Trulson 2018-04-10 13:28:55 -06:00
parent 6fff16a049
commit 88cbe518a4
3 changed files with 21 additions and 6 deletions

View file

@ -79,9 +79,9 @@ XCOMM
XCOMM check for existence of /etc/inetd.conf XCOMM check for existence of /etc/inetd.conf
XCOMM XCOMM
if [ ! -f $FILE ] # highly unlikely if [ ! -f $FILE ] # highly unlikely (in the 1990s, quite likely in 2018)
then then
echo "" >$FILE return
fi fi
XCOMM XCOMM
@ -120,6 +120,11 @@ UnfixEtcInetdDotConf()
FILE=/etc/inetd.conf FILE=/etc/inetd.conf
TMPFILE=/tmp/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") awk '{if ($1 == "dtspc")
; ;
else else

View file

@ -24,9 +24,9 @@ XCOMM
XCOMM check for existence of /etc/inetd.conf XCOMM check for existence of /etc/inetd.conf
XCOMM XCOMM
if [ ! -f $FILE ] # highly unlikely if [ ! -f $FILE ] # highly unlikely (in the 1990s, quite likely in 2018)
then then
echo "" >$FILE return
fi fi
XCOMM XCOMM
@ -91,6 +91,11 @@ FILE=/etc/inetd.conf
TMPFILE=/tmp/inetd.conf TMPFILE=/tmp/inetd.conf
CMSD=CDE_INSTALLATION_TOP/bin/rpc.cmsd 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 HASH first remove the CDE rpc.cmsd entry
awk -v cmsd=$CMSD \ awk -v cmsd=$CMSD \

View file

@ -26,9 +26,9 @@ XCOMM
XCOMM check for existence of /etc/inetd.conf XCOMM check for existence of /etc/inetd.conf
XCOMM XCOMM
if [ ! -f $FILE ] # highly unlikely if [ ! -f $FILE ] # highly unlikely (in the 1990s, quite likely in 2018)
then then
echo "" >$FILE return
fi fi
XCOMM XCOMM
@ -64,6 +64,11 @@ FILE=/etc/inetd.conf
TMPFILE=/tmp/inetd.conf TMPFILE=/tmp/inetd.conf
TTDBSERVERD=CDE_INSTALLATION_TOP/bin/rpc.ttdbserver 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 \ awk -v ttdb=$TTDBSERVERD \
'{if ($1 == "100083/1" && $6 == ttdb) '{if ($1 == "100083/1" && $6 == ttdb)
; ;