#!/bin/bash if [ `whoami` != "root" ] ; then echo "This must be run as root." >&2 exit 1 fi BASEDIR=`dirname $0` if ! test -f ${BASEDIR}/keys/gpg/kali-repo.key ; then echo "Couldn't find key, are you in the right place?" >&2 exit 1 fi cat >/etc/apt/sources.list.d/kali.list <