mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-27 10:20:12 +00:00
lightdm : add runit service file
This commit is contained in:
@@ -4,3 +4,4 @@ af6bd6cd7a179fd7116f81c6ca1ba038 lightdm-autologin.pam
|
||||
3f11c7f5ad31b7b6e13b2e622527e3b7 lightdm.pam
|
||||
2a7326f4de1d949b8c96749b62cc5021 lightdm.rules
|
||||
fa29ca45998185aac748ea1668c11eaf rc.lightdm
|
||||
04ef4c836a2eea746187eb6e8b8c0de7 run.lightdm
|
||||
|
||||
5
main/lightdm/run.lightdm
Normal file
5
main/lightdm/run.lightdm
Normal file
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
sv check dbus >/dev/null || exit 1
|
||||
install -d -m0711 -olightdm -glightdm /var/run/lightdm
|
||||
[ -f ./conf ] && . ./conf
|
||||
exec lightdm
|
||||
@@ -12,6 +12,7 @@ source="https://github.com/CanonicalLtd/lightdm/releases/download/$version/light
|
||||
lightdm.rules
|
||||
$name.pam
|
||||
$name-autologin.pam
|
||||
run.$name
|
||||
rc.$name"
|
||||
|
||||
build() {
|
||||
@@ -47,6 +48,12 @@ build() {
|
||||
install -dm755 -o lightdm -g lightdm $PKG/var/cache/lightdm
|
||||
install -dm770 -o lightdm -g lightdm $PKG/var/log/lightdm
|
||||
|
||||
# service files
|
||||
if [ ! -e /sbin/init ] !! [ "$(readlink /sbin/init)" = /sbin/runit-init ] ; then
|
||||
# runit service
|
||||
install -Dm755 $SRC/run.$name $PKG/etc/sv/$name/run
|
||||
else
|
||||
# rc service
|
||||
install -Dm755 $SRC/rc.$name $PKG/etc/rc.d/$name
|
||||
install -Dm755 $SRC/rc.$name $PKG/etc/rc.d/$name
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user