Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#!/bin/ksh
#
# Determine which disk is ssdnn
ME=$(basename $0)
if [ -z "$1" ]
then
echo "$ME: usage: $ME <disknumber>"
else
DEVICEPATH=$(nawk -v DISKNUMBER=$1 -v SEARCHSTRING="$ME" 'BEGIN {FS="[ \"]+"} $4 == SEARCHSTRING && $3 == DISKNUMBER {print $2}' /etc/path_to_inst)
if [ -z "$DEVICEPATH" ]
then
echo "$ME: No matching devices found in /etc/path_to_inst."
exit
fi
echo "$ME: DEVICEPATH is $DEVICEPATH"
echo
ls -l /dev/dsk/*s2 | fgrep "${DEVICEPATH}:c" | nawk '{print $9}' | while read DEVICE
do
DEVICEFOUND=true
echo "$ME: DEVICE is $DEVICE"
if [ -x /usr/sbin/vxdisk ]
then
echo
if [ "$LOGNAME" = "root" ]
then
vxdisk list $(basename $DEVICE)
else
echo "$ME: Not logged in as root; unable to run vxdisk list on device."
fi
fi
done
if [ -z "$DEVICEFOUND" ]
then
echo "$ME: No devices found using device path ${DEVICEPATH}."
exit
fi
fi