|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 3928 (0xf58) Types: TextFile Notes: UNIX file Names: »postinstall«
└─⟦82ee0715d⟧ Bits:30004771 Terminal Driver Rel. 1.2 (3.5 inch) └─⟦82ee0715d⟧ UNIX Filesystem └─⟦this⟧ »RCTDR.ISC/install/postinstall« └─⟦this⟧ »RCTDR.SCO/install/postinstall« └─⟦ca69fd3f9⟧ Bits:30004770 Terminal Driver Rel. 1.2 (5.25 inch) └─⟦ca69fd3f9⟧ UNIX Filesystem └─⟦this⟧ »RCTDR.ISC/install/postinstall« └─⟦this⟧ »RCTDR.SCO/install/postinstall«
#ident @(#)postinstall 1.4, RC International, 92/12/21 # Postinstall script for the Terminal Driver package # Restore sdevice files for td, tdp, tdf and tdm for file in td tdp tdf tdm do if [ -r /tmp/${file}.Sdev ] ; then cp /tmp/${file}.Sdev /etc/conf/sdevice.d/${file} fi done # Restore node files for tdp, tdf and tdm for file in tdp tdf tdm do if [ -r /tmp/${file}.Snode ] ; then cp /tmp/${file}.Snode /etc/conf/node.d/${file} fi done # Restore init files for tdp, tdf and tdm for file in tdp tdf tdm do if [ -r /tmp/${file}.Sinit ] ; then cp /tmp/${file}.Sinit /etc/conf/init.d/${file} fi done # Restore saved xpasswd apixrhosts file for file in xpasswd apixrhosts do if [ -r /tmp/$file.S ] ; then cp /tmp/$file.S /etc/rci.d/$file chmod 600 /etc/rci.d/$file chown root /etc/rci.d/$file chgrp sys /etc/rci.d/$file fi done # Setup RC International profile and stdprofile if [ ! -r /etc/rci.d/profile.org ] ; then cp /etc/profile /etc/rci.d/profile.org fi if [ ! -r /etc/rci.d/stdprofile.org ] ; then cp /etc/stdprofile /etc/rci.d/stdprofile.org 2>/dev/null fi rm -f /etc/profile rm -f /etc/stdprofile cp /etc/rci.d/profile /etc cp /etc/rci.d/stdprofile /etc chown bin /etc/stdprofile chgrp bin /etc/stdprofile chmod 444 /etc/stdprofile chown root /etc/profile chgrp sys /etc/profile chmod 644 /etc/profile # Fixup /etc/termcap if [ ! -f /etc/termcap ] ; then cp /etc/rci.d/termcap /etc elif grep 'RC International' /etc/termcap >/dev/null ; then echo "RC International termcap definations appears to be" echo "present in /etc/termcap." echo "The new RCI termcap definations are in /etc/rci.d/termcap" echo "Manual edit/merge is needed" else if [ ! -f /etc/rci.d/termcap.org ] ; then echo "Saving original /etc/termcap as /etc/rci.d/termcap.org" mv /etc/termcap /etc/rci.d/termcap.org # combine with theirs cat /etc/rci.d/termcap /etc/rci.d/termcap.org > /etc/termcap else echo "Termcap save file (/etc/rci.d/termcap.org) exists" echo "Current /etc/termcap saved as /etc/termcap.tmp" mv /etc/termcap /etc/termcap.tmp # combine with theirs cat /etc/rci.d/termcap /etc/termcap.tmp > /etc/termcap fi chmod 444 /etc/termcap chgrp bin /etc/termcap chown bin /etc/termcap fi # if SCO v.2.x system install extra /usr/lib/sco/tcap description files # if SCO v.4.x system install extra /usr/lib/keyboard/strings.d files TCAPDIRS="at386-m at386 at386-m+rc at386+rc csp950m csp950 partner rc926 sat386m sat386 sco386m sco386 vt100 vt200+rc" AT386DIRS="at386-m at386 at386-m+rc at386+rc csp950m csp950 partner sat386m sat386 vt200+rc" if [ -d /usr/lib/sco/tcap ] ; then if [ -d /usr/src/lib/tcap ] ; then cd /usr/lib/sco/tcap if [ -f /usr/src/lib/tcap/at386.fk ] ; then for i in $AT386DIRS do test -d $i || mkdir $i ln /usr/src/lib/tcap/at386.fk $i/fkeys.oa done fi if [ -f /usr/src/lib/tcap/sco386.fk ] ; then test -d sco386 || mkdir sco386 ln /usr/src/lib/tcap/sco386.fk sco386/fkeys.oa test -d sco386m || mkdir sco386m ln /usr/src/lib/tcap/sco386.fk sco386m/fkeys.oa fi if [ -f /usr/src/lib/tcap/sco386m.gr ] ; then test -d sco386m || mkdir sco386m ln /usr/src/lib/tcap/sco386m.gr sco386m/graph.oa fi if [ -f /usr/src/lib/tcap/rc926.fk ] ; then test -d rc926 || mkdir rc926 ln /usr/src/lib/tcap/rc926.fk rc926/fkeys.oa fi if [ -f /usr/src/lib/tcap/vt100.fk ] ; then test -d vt100 || mkdir vt100 ln /usr/src/lib/tcap/vt100.fk vt100/fkeys.oa fi if [ -f /usr/src/lib/tcap/a320b-122.fk ] ; then test -d vt100 || mkdir a320b-122 ln /usr/src/lib/tcap/a320b-122.fk a320b-122/fkeys.oa fi if [ -f /usr/src/lib/tcap/a320b-108.fk ] ; then test -d vt100 || mkdir a320b-108 ln /usr/src/lib/tcap/a320b-108.fk a320b-108/fkeys.oa fi if [ -f /usr/src/lib/tcap/a320b-102.fk ] ; then test -d vt100 || mkdir a320b-102 ln /usr/src/lib/tcap/a320b-102.fk a320b-102/fkeys.oa fi fi fi