DataMuseum.dk

Presents historical artifacts from the history of:

Regnecentalen RC-900

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Regnecentalen RC-900

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T u

⟦7c3e6ee0d⟧ TextFile

    Length: 1080 (0x438)
    Types: TextFile
    Names: »usr/admin/menu/diskmgmt/harddisk/umounthdfsys «

Derivation

└─⟦3d8f416b2⟧ Bits:30004042/core2.imd SW95705I 386/ix Multi-user Release 1.2
    └─⟦this⟧ »usr/admin/menu/diskmgmt/harddisk/umounthdfsys « 

TextFile

#ident	"@(#)umounthdfsys	1.1 - 87/11/25"
#menu# unmount a hard disk file system
#help#
#help# Unmounthdfsys enables you to unmount the hard disk file system

trap 'exit 0' 1 2 3 15

flags="-qq -k$$"

fsystms=`/etc/mount | sed 's/ .*//
			/^\/$/d' | tr '\012' ' '`

devs=`/etc/mount | sed	'/^\/ /d
			s/^\([^ ]*\) on \([^ ]*\) .*/\2/p' | tr '\012' ' '`

now=`/etc/mount | sed	'/^\/ /d
			s/^\([^ ]*\) on \([^ ]*\) .*/\1 is mounted on \2/p'`

fs=`checklist ${flags} -fe -l ' ' -H'
	You may list more than one file system and the special answer
	"ALL" will unmount all file systems.' \
	"
Currently:
File System		Device
${now}

Select the file system(s) (${fsystms}) ALL
you want to unmount [?, q]:" ${fsystms} ALL`
case "$fs" in
ALL )
	fs=${fsystms}
	;;
?*ALL | ALL*? )
	echo >&2 '	ALL must be used by itself. Please try again.'
	exec sh $0
esac

if checkyn -qq -t -k$$ -f -H'
	Unmounting a file system will "logically" remove it from the system.
	While unmounted, it can not be used.' \
	"
Going to unmount ${fs}.
Continue?"
then
	for i in $fs
	do
		/etc/umount $i
	done
fi
exit 0