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
0d8e44d8
Commit
0d8e44d8
authored
May 30, 2013
by
Michael Shigorin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11-autologin: factor out x11-autostart
It has value of its own and can be used standalone; autologin does require autostart though. Adjust x11 feature targets accordingly.
parent
b683d5d7
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
32 additions
and
17 deletions
+32
-17
config.mk
features.in/x11-autologin/config.mk
+1
-1
40-x11-autologin
....in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin
+0
-7
README
features.in/x11-autostart/README
+5
-0
config.mk
features.in/x11-autostart/config.mk
+3
-0
40-x11-autostart
....in/x11-autostart/rootfs/image-scripts.d/40-x11-autostart
+18
-0
config.mk
features.in/x11/config.mk
+5
-9
No files found.
features.in/x11-autologin/config.mk
View file @
0d8e44d8
use/x11-autologin:
use/x11-autologin:
use/x11-autostart
@$(call add_feature)
@$(call add,THE_PACKAGES,shadow-groups) # gpasswd
features.in/x11-autologin/rootfs/image-scripts.d/40-x11-autologin
View file @
0d8e44d8
...
...
@@ -39,13 +39,6 @@ restore_later() {
chmod
+x
"
$hook
"
}
## setup runlevel
INITTAB
=
/etc/inittab
if
[
-f
"
$INITTAB
"
]
;
then
[
-z
"
$runlevel
"
]
&&
runlevel
=
5
sed
-i
"s,^
\(
id:
\)\(
.*
\)\(
:initdefault.*
\)
,
\\
1
$runlevel
\\
3,"
"
$INITTAB
"
fi
## autologin^2
AUTOLOGIN_CFG
=
/etc/sysconfig/autologin
if
[
-x
/usr/sbin/autologin
]
;
then
...
...
features.in/x11-autostart/README
0 → 100644
View file @
0d8e44d8
Эта фича добавляет в формируемый пользовательский корень
(как правило, live) функцию автоматического запуска
графической сессии; обратите внимание, что автоматическим
входом после запуска графики занимается соседняя фича
x11-autologin.
features.in/x11-autostart/config.mk
0 → 100644
View file @
0d8e44d8
use/x11-autostart: use/x11
@$(call add_feature)
@$(call add,BASE_PACKAGES,installer-feature-runlevel5-stage3) ###
features.in/x11-autostart/rootfs/image-scripts.d/40-x11-autostart
0 → 100755
View file @
0d8e44d8
#!/bin/sh
if
[
!
-x
/usr/bin/X
]
;
then
echo
"SKIP autostart: X not installed"
>
&2
exit
0
fi
## setup automated graphical session startup
INITTAB
=
/etc/inittab
if
[
-f
"
$INITTAB
"
]
;
then
[
-z
"
$runlevel
"
]
&&
runlevel
=
5
sed
-i
"s,^
\(
id:
\)\(
.*
\)\(
:initdefault.*
\)
,
\\
1
$runlevel
\\
3,"
"
$INITTAB
"
fi
## ...and systemd, if any
rm
-f
/etc/systemd/system/default.target
:
features.in/x11/config.mk
View file @
0d8e44d8
...
...
@@ -44,26 +44,22 @@ use/x11/fglrx: use/x11
use/x11/wacom: use/x11
@$(call add,THE_PACKAGES,xorg-drv-wacom xorg-drv-wizardpen)
### strictly speaking, runlevel5 should require a *dm, not vice versa
use/x11/runlevel5: use/x11/xorg
@$(call add,THE_PACKAGES,installer-feature-runlevel5-stage3)
### xdm: see also #23108
use/x11/xdm: use/x11
/runlevel5
use/x11/xdm: use/x11
-autostart
@$(call add,THE_PACKAGES,xdm installer-feature-no-xconsole-stage3)
### : some set()-like thing might be better?
use/x11/lightdm/gtk use/x11/lightdm/qt use/x11/lightdm/razorqt \
use/x11/lightdm/kde: use/x11/lightdm/%: use/x11
/runlevel5
use/x11/lightdm/kde: use/x11/lightdm/%: use/x11
-autostart
@$(call add,THE_PACKAGES,lightdm-$*-greeter)
use/x11/kdm: use/x11
/runlevel5
use/x11/kdm: use/x11
-autostart
@$(call add,THE_PACKAGES,kdebase-kdm<4)
use/x11/kdm4: use/x11
/runlevel5
use/x11/kdm4: use/x11
-autostart
@$(call add,THE_PACKAGES,kde4base-workspace-kdm)
use/x11/gdm2.20: use/x11
/runlevel5
use/x11/gdm2.20: use/x11
-autostart
@$(call add,THE_PACKAGES,gdm2.20)
use/x11/icewm: use/x11
...
...
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