Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
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
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Software
Commits
297885df
Commit
297885df
authored
Mar 07, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
get-init-system.sh: poke systemd directories for chroot environ
parent
bab2d737
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
get-init-system.sh
scripts/get-init-system.sh
+4
-0
No files found.
scripts/get-init-system.sh
View file @
297885df
...
@@ -9,6 +9,10 @@ if [[ ${IS_UPSTART} =~ upstart ]]; then
...
@@ -9,6 +9,10 @@ if [[ ${IS_UPSTART} =~ upstart ]]; then
echo
"upstart"
;
echo
"upstart"
;
elif
[[
`
systemctl
`
=
~ -
\.
mount
]]
;
then
elif
[[
`
systemctl
`
=
~ -
\.
mount
]]
;
then
echo
"systemd"
;
echo
"systemd"
;
# If on chroot the above alternative will not work.
# Try poking a few systemd directories instead
elif
[[
-f
/usr/lib/systemd
||
-f
/lib/systemd/systemd
]]
;
then
echo
"systemd"
;
elif
[[
-f
/etc/init.d/cron
&&
!
-h
/etc/init.d/cron
]]
;
then
elif
[[
-f
/etc/init.d/cron
&&
!
-h
/etc/init.d/cron
]]
;
then
echo
"sysv-init"
;
echo
"sysv-init"
;
else
else
...
...
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