#!/bin/sh

# Determine whether root or a mortal user is using /sbin/umount
# If root, just /sbin/umount_root
# If mortal user, sudo to umount

if [ -x /usr/bin/id ]; then
   if test `/usr/bin/id -u` != 0; then
      if [ -x /usr/pkg/bin/sudo ]; then
         /usr/pkg/bin/sudo /sbin/umount $*
         exit $?
      fi
   fi
fi

/sbin/umount_root $*
exit $?

