DataMuseum.dk

Presents historical artifacts from the history of:

RC9000

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

See our Wiki for more about RC9000

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦4280ea077⟧ TextFile

    Length: 438 (0x1b6)
    Types: TextFile
    Notes: @(#)fstyp_special.sh 13.1 (RC International) 91/07/31
    Names: »fstyp_special«

Derivation

└─⟦50656ff4a⟧ Bits:30010538 TX 3.1 Coldstart
    └─⟦bbf173f5c⟧ »0004« 
        └─⟦this⟧ »./usr/sadm/sysadm/bin/fstyp_special« 

TextFile

#!/sbin/sh
#	@(#)fstyp_special.sh	13.1 (RC International) 91/07/31

#ident	"@(#)oamintf:files/bin/fstyp_special.	1.2"
# fstyp_special  <special>
# returns the type of special from vfstab (if any)
SPECIAL=$1
BLOCK=`devattr "$SPECIAL" bdevice  2> /dev/null`
if [ "$BLOCK" = "" ]
then
	BLOCK="$SPECIAL"
fi
while read special dummy1 mountp fstype dummy2
do
	if [ "t$BLOCK" = "t$special" ]
	then
		echo $fstype
		exit 0
	fi
done < /etc/vfstab