diff options
| author | Daniel Baumann <daniel@debian.org> | 2007-09-23 14:46:37 +0200 |
|---|---|---|
| committer | Daniel Baumann <daniel@debian.org> | 2011-03-09 17:31:05 +0100 |
| commit | 0a1b827c113b85f48bcd58e64ccd94d094b9bd8a (patch) | |
| tree | d83a31c0fdd90c55379666f5962df9c1ea6e43d4 /scripts/live-bottom/10adduser | |
| parent | ccea277caf476cdfef4c0f953df5a97062d8be42 (diff) | |
| download | live-boot-0a1b827c113b85f48bcd58e64ccd94d094b9bd8a.tar.gz live-boot-0a1b827c113b85f48bcd58e64ccd94d094b9bd8a.zip | |
Adding live-initramfs 1.87.5-1.
Diffstat (limited to 'scripts/live-bottom/10adduser')
| -rwxr-xr-x | scripts/live-bottom/10adduser | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/live-bottom/10adduser b/scripts/live-bottom/10adduser index f4c42f8..378f016 100755 --- a/scripts/live-bottom/10adduser +++ b/scripts/live-bottom/10adduser @@ -26,7 +26,7 @@ log_begin_msg "Adding live session user..." # live-initramfs script -if [ "${BUILD_SYSTEM}" == "Debian" ]; then +if [ "${BUILD_SYSTEM}" = "Debian" ]; then user_crypted="8Ab05sVQ4LLps" # as in `echo "live" | mkpasswd -s` else user_crypted="U6aMy0wojraho" # "ubuntu" @@ -41,7 +41,7 @@ set passwd/username $USERNAME set passwd/user-uid 999 EOF -if [ "${BUILD_SYSTEM}" == "Debian" ]; then +if [ "${BUILD_SYSTEM}" = "Debian" ]; then chroot /root /usr/bin/env -i HOME="/root" \ TERM="${TERM}" PATH="/usr/sbin:/usr/bin:/sbin:/bin" \ /usr/lib/user-setup/user-setup-apply > /dev/null @@ -62,7 +62,7 @@ if [ -z "${NOSUDO}" ] then if [ -f /root/etc/sudoers ]; then - if [ "${BUILD_SYSTEM}" == "Ubuntu" ]; then + if [ "${BUILD_SYSTEM}" = "Ubuntu" ]; then grep -q '^%admin' /root/etc/sudoers && sed -i -e '/^%admin/s/ALL$/NOPASSWD: ALL/' /root/etc/sudoers || echo '%admin ALL=(ALL) NOPASSWD: ALL' >> /root/etc/sudoers # XXX - awful hack to stop xscreensaver locking the screen (#7150) |
