|
|
@ -13,13 +13,13 @@ db_get passwd/username
|
|
|
|
USER="$RET"
|
|
|
|
USER="$RET"
|
|
|
|
db_get passwd/auto-login
|
|
|
|
db_get passwd/auto-login
|
|
|
|
if [ -n "$USER" ] && [ "$RET" = true ]; then
|
|
|
|
if [ -n "$USER" ] && [ "$RET" = true ]; then
|
|
|
|
if $chroot $ROOT [ -f /etc/trinity/tdm/kdmrc ]; then
|
|
|
|
if $chroot $ROOT [ -f /etc/trinity/kdm/kdmrc ]; then
|
|
|
|
# Configure KDM autologin
|
|
|
|
# Configure KDM autologin
|
|
|
|
$log $chroot $ROOT sed -i$BACKUP -r \
|
|
|
|
$log $chroot $ROOT sed -i$BACKUP -r \
|
|
|
|
-e "s/^#?AutoLoginEnable=.*\$/AutoLoginEnable=true/" \
|
|
|
|
-e "s/^#?AutoLoginEnable=.*\$/AutoLoginEnable=true/" \
|
|
|
|
-e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=$USER/" \
|
|
|
|
-e "s/^#?AutoLoginUser=.*\$/AutoLoginUser=$USER/" \
|
|
|
|
-e "s/^#?AutoLoginAgain=.*\$/AutoLoginAgain=true/" \
|
|
|
|
-e "s/^#?AutoLoginAgain=.*\$/AutoLoginAgain=true/" \
|
|
|
|
/etc/trinity/tdm/kdmrc
|
|
|
|
/etc/trinity/kdm/kdmrc
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if $chroot $ROOT [ -f /etc/trinity/tdm/tdmrc ]; then
|
|
|
|
if $chroot $ROOT [ -f /etc/trinity/tdm/tdmrc ]; then
|
|
|
|