ensure we have the necessary access
authorMarius Mauch <genone@gentoo.org>
Wed, 19 Jul 2006 09:55:34 +0000 (09:55 -0000)
committerMarius Mauch <genone@gentoo.org>
Wed, 19 Jul 2006 09:55:34 +0000 (09:55 -0000)
svn path=/main/trunk/; revision=3928

bin/etc-update

index f6775e9570b96870e3357ea98eef3a7f8d471cf2..41def58a1f8e48f74af342c72e89deebdd83d47e 100755 (executable)
@@ -365,6 +365,8 @@ scriptname=$(basename $0)
 
 trap die term
 
+[ -w /etc ] || die "Need root priviledges for write access to /etc"
+
 export PORTAGE_TMPDIR=$(/usr/lib/portage/bin/portageq envvar PORTAGE_TMPDIR)
 
 TMP="${PORTAGE_TMPDIR}/$$"