Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mkimage-profiles
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Anton Palgunov
mkimage-profiles
Commits
d94232fb
Commit
d94232fb
authored
Dec 31, 2012
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
live: updated 40-autologin to support kdm4
Was long overdue already but let's leave that in 2012. :)
parent
a1c0e82e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
40-autologin
features.in/live/live/image-scripts.d/40-autologin
+11
-6
No files found.
features.in/live/live/image-scripts.d/40-autologin
View file @
d94232fb
...
...
@@ -48,15 +48,20 @@ if [ -f "$GDM_CONF" ]; then
add_nopasswdlogin_group gdm
||
:
fi
## kdm3 autologin
# TODO: iterate over kdm{,4} if feasible
KDMRC
=
/etc/X11/kdm/kdmrc
if
[
-f
"
$KDMRC
"
]
;
then
autologin_kdm
()
{
sed
-i
\
-e
'/AutoLoginEnable/ s,^.*$,AutoLoginEnable=true,'
\
-e
'/AutoLoginUser/ s,^.*$,AutoLoginUser='
$USER
','
\
"
$KDMRC
"
fi
"
$1
"
}
## kdm3 autologin
KDMRC
=
/etc/X11/kdm/kdmrc
if
[
-f
"
$KDMRC
"
]
;
then
autologin_kdm
"
$KDMRC
"
;
fi
## kdm4 autologin
KDMRC
=
/etc/X11/kdm4/kdmrc
if
[
-f
"
$KDMRC
"
]
;
then
autologin_kdm
"
$KDMRC
"
;
fi
## nodm autologin (the last since the most intrusive)
# FIXME nodm and xinitrc should be modified (also in p6)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment