#!/bin/sh

PROGRAM=/usr/bin/nvtv
MSG="You need root permissions to control the video hardware. Please enter the root password."

if [ `id -u` = 0 ] ; then
   # oh, I am root, just continue
   $PROGRAM $*
else
   gksu -m "$MSG" "$PROGRAM $*"
fi

