diff options
author | Sebastian Dziallas <sebastian@when.com> | 2009-07-31 11:00:25 (GMT) |
---|---|---|
committer | Sebastian Dziallas <sebastian@when.com> | 2009-07-31 11:00:25 (GMT) |
commit | 105bb9fdaa7fb899d933adfb06508bf9681b4d99 (patch) | |
tree | 99b2cd2a3e14e60212ca739dee9987fda827f41e /soas-base.ks | |
parent | 2a5a0d6019864e916432f46e68511add5084ca50 (diff) |
switch to olpc-dm and rename user
Diffstat (limited to 'soas-base.ks')
-rw-r--r-- | soas-base.ks | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/soas-base.ks b/soas-base.ks index 15c45d1..f86f0d4 100644 --- a/soas-base.ks +++ b/soas-base.ks @@ -205,7 +205,7 @@ mountPersistentHome() { # we should make that the real /home. useful for mtd device on olpc if [ -d /home/home ]; then mount --bind /home/home /home ; fi [ -x /sbin/restorecon ] && /sbin/restorecon /home - if [ -d /home/liveuser ]; then USERADDARGS="-M" ; fi + if [ -d /home/olpc ]; then USERADDARGS="-M" ; fi } findPersistentHome() { @@ -239,9 +239,12 @@ if [ -n "\$configdone" ]; then exit 0 fi -# add fedora user with no passwd -action "Adding live user" useradd \$USERADDARGS -c "Live System User" liveuser -passwd -d liveuser > /dev/null +# add soas user with no passwd +/usr/sbin/useradd -m -c "soas user" -G audio,wheel olpc +/usr/bin/passwd -d olpc + +# allow sudo for olpc user +echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers # turn off firstboot for livecd boots chkconfig --level 345 firstboot off 2>/dev/null @@ -388,7 +391,7 @@ Section "Screen" EndSection FOE -echo "Xft.dpi: 150" > /home/liveuser/.Xresources +echo "Xft.dpi: 150" > /home/olpc/.Xresources fi |