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
47f8d6ef
Commit
47f8d6ef
authored
Sep 24, 2015
by
Aleksey Avdeev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: Add systemd-specific hooks
Signed-off-by:
Aleksey Avdeev
<
avdeev@pkcc-tb.ru
>
parent
17d9f63a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
10-services
features.in/services/install2/image-scripts.d/10-services
+11
-1
No files found.
features.in/services/install2/image-scripts.d/10-services
View file @
47f8d6ef
...
...
@@ -29,11 +29,21 @@ SERVICES="$GLOBAL_DEFAULT_SERVICES_ENABLE $GLOBAL_DEFAULT_SERVICES_DISABLE"
SERVICES
=
"
$SERVICES
$GLOBAL_SERVICES_ENABLE
$GLOBAL_SERVICES_DISABLE
"
SERVICES
=
"
$(
echo
$SERVICES
|
sort
-u
)
"
# TODO: provide systemd-specific hooks too?
for
i
in
$SERVICES
;
do
onoff
=
"
$(
shell_config_get
"
$STATUS
"
"
$i
"
)
"
[
-n
"
$onoff
"
]
||
continue
echo
"
$i
"
>>
/usr/share/install2/services-
"
$onoff
"
# create systemd-specific hooks
case
"
$onoff
"
in
on
)
action
=
enabled
;;
off
)
action
=
disabled
;;
*
)
continue
;;
esac
echo
"
$i
"
>>
/usr/share/install2/systemd-
"
$action
"
done
rm
"
$STATUS
"
...
...
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