#!/bin/sh # # Umount the roku SDK under a cross-compile environment. # usage() { echo "" echo "Usage: $0 " echo " Directory where to unmount the SDK." echo "" echo "e.g: $0 /mnt/rokudev" exit 1 } MOUNTPOINT=$1 if test "$MOUNTPOINT" = ""; then usage; fi if test -d "$MOUNTPOINT" then umount "$MOUNTPOINT" /sbin/losetup -d /dev/loop0 else usage fi exit 0