home *** CD-ROM | disk | FTP | other *** search
- #ident "@(#)postremove 1.5"
- #!/bin/sh
-
- ADMINUSER=/usr/bin/adminuser
- SCOADMIN=/usr/bin/scoadmin
- GREP=/usr/bin/grep
-
- #
- # remove changes to system files
- #
- sh /var/sadm/pkg/nwnet/install/nwservices remove > /tmp/nwservices
- cp /tmp/nwservices /etc/inet/services
- sh /var/sadm/pkg/nwnet/install/nwnetconfig remove > /tmp/nwnetconfig
- cp /tmp/nwnetconfig /etc/netconfig
-
- #
- # remove the "/dev/NVT MF" entry from /etc/ttysrch.
- #
- $GREP -v "/dev/NVT MF" /etc/ttysrch >/tmp/$$.m1
- cp /tmp/$$.m1 /etc/ttysrch
- rm -f /tmp/$$.m1
-
-
- #
- # Remove drivers
- #
- cd /etc/conf
-
- for i in nspx ripx ipx nwip
- do
- /etc/conf/bin/idinstall -d $i
- done
-
- #
- # Deconfigure nvt
- #
- /usr/sbin/sacadm -r -p nvt 2>/dev/null
- rm -fr /dev/NVT
-
- #
- # Remove /var netware directories
- #
- rm -fr /var/netware /var/spool/sap
-
- #
- # Remove .pid files
- #
- rm -f /etc/netware/*.pid
-
- #
- # Make sure pid files are gone
- #
- rm -f /etc/netware/*.pid
-
- rm -rf /etc/nwipd.pid
- rm -rf /dev/lan0
-
- /usr/sbin/netinfo -r -d nwip
-
- #
- # Update scoadmin NetWare folder
- #
-
- if [ -x $SCOADMIN ]
- then
- $SCOADMIN -p NetWare -d /usr/lib/scoadmin/NetWare/NetWare_Setup.obj
- fi
-
- #
- # Remove tfadmin privileges
- #
-
- $ADMINUSER -r NetWare_Setup root
-
- exit 0
-