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
8868ee04
Commit
8868ee04
authored
Oct 10, 2023
by
Anton Midyukov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11-autostart: enable graphical.target
If xinitrc is not installed, then you must enable graphical.target for the systemd.
parent
62f32d44
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
40-x11-autostart
....in/x11-autostart/rootfs/image-scripts.d/40-x11-autostart
+6
-9
No files found.
features.in/x11-autostart/rootfs/image-scripts.d/40-x11-autostart
View file @
8868ee04
#!/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
## NB: alterator-setup's backup file can present a nice catch if left around
rm
-f
/etc/systemd/system/default.target
{
,.bak
}
TARGET
=
/lib/systemd/system/graphical.target
if
[
-s
"
$TARGET
"
]
;
then
rm
-f
/etc/systemd/system/default.target
ln
-s
"
$TARGET
"
/etc/systemd/system/default.target
fi
:
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