#!/bin/sh myname=`basename $0` usage() { cat << EOT $myname command command is one of update: update all jannet software on the system EOT if [ "$1" ]; then exit $1 fi } case $1 in update) sudo smart update ftp.jannet.de sudo smart upgrade -y ;; *) usage 1 ;; esac