summaryrefslogtreecommitdiff
path: root/system/gettys-openrc/gettys.initd
diff options
context:
space:
mode:
authorLaurent Bercot <ska-adelie@skarnet.org>2019-06-09 11:17:49 +0000
committerLuis Ressel <aranea@aixah.de>2019-07-22 00:44:05 +0200
commit2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9 (patch)
tree47207be4ed1841ba5fd4ca1e54541c84ed85c5dc /system/gettys-openrc/gettys.initd
parentd3eb7058d8f66a7fa94c262314df4c95a76a36fc (diff)
downloadpackages-2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9.tar.gz
packages-2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9.tar.bz2
packages-2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9.tar.xz
packages-2d5bb95bb096b535989210cbb3ce9fc9fc3dd9b9.zip
system/s6-linux-init-early-getty: new subpackage of s6-linux-init
Diffstat (limited to 'system/gettys-openrc/gettys.initd')
-rw-r--r--system/gettys-openrc/gettys.initd8
1 files changed, 6 insertions, 2 deletions
diff --git a/system/gettys-openrc/gettys.initd b/system/gettys-openrc/gettys.initd
index 5181d9af2..a1fbb2082 100644
--- a/system/gettys-openrc/gettys.initd
+++ b/system/gettys-openrc/gettys.initd
@@ -47,8 +47,12 @@ start() {
for i in $GETTYS ; do
if test -c /dev/"$i" ; then
- makeservice "$i"
- ln -nsf "/var/lib/s6/services/getty-$i" "/run/service/getty-$i"
+ if test -d "/etc/s6-linux-init/current/run-image/service/getty-$i" ; then
+ :
+ else
+ makeservice "$i"
+ ln -nsf "/var/lib/s6/services/getty-$i" "/run/service/getty-$i"
+ fi
fi
done