X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=scripts%2Flive-bottom%2F10adduser;h=1a80e26b1250b2efb138a0f23670cf1cb3c875ea;hb=cabcd3723fc124a3816f7e992912189e65c7b382;hp=e5067dd8c8e94ff3cb76da8a5de5fb9f45b3f3b1;hpb=64af8a933cdcb85e25ccce3771554df22450372d;p=live-boot-grml.git diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser index e5067dd..1a80e26 100755 --- a/scripts/live-bottom/10adduser +++ b/scripts/live-bottom/10adduser @@ -59,7 +59,7 @@ EOF if [ -z "${NOSUDO}" ] then - if [ -f /root/etc/sudoers ] + if ! grep -q "${USERNAME}" /root/etc/sudoers then echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> /root/etc/sudoers