6 changed files with 4 additions and 136 deletions
@ -1,44 +0,0 @@
|
||||
# This will inject artix-live and pacman-init as dependencies for DMs |
||||
# and create default boot tree and needed boot services |
||||
|
||||
post_install() { |
||||
if [ -f /usr/bin/gdm ]; then |
||||
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\ |
||||
'\1artix-live pacman-init )#' /etc/66/service/gdm |
||||
66-disable -t default logind gdm |
||||
66-enable -t default logind gdm |
||||
elif [ -f /usr/bin/lightdm ]; then |
||||
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\ |
||||
'\1artix-live pacman-init )#' /etc/66/service/lightdm |
||||
66-disable -t default logind lightdm |
||||
66-enable -t default logind lightdm |
||||
elif [ -f /usr/bin/sddm ]; then |
||||
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\ |
||||
'\1artix-live pacman-init )#' /etc/66/service/sddm |
||||
66-disable -t default logind sddm |
||||
66-enable -t default logind sddm |
||||
else |
||||
66-enable -t default artix-live pacman-init |
||||
fi |
||||
|
||||
66-tree -n boot |
||||
66-enable -t boot -F boot@system |
||||
} |
||||
|
||||
post_remove() { |
||||
if [ -f /usr/bin/gdm ]; then |
||||
sed -i -E 's# artix-live pacman-init##' /etc/66/service/gdm |
||||
66-disable -t default logind gdm |
||||
66-enable -t default logind gdm |
||||
elif [ -f /usr/bin/lightdm ]; then |
||||
sed -i -E 's# artix-live pacman-init##' /etc/66/service/lightdm |
||||
66-disable -t default logind lightdm |
||||
66-enable -t default logind lightdm |
||||
elif [ -f /usr/bin/sddm ]; then |
||||
sed -i -E 's# artix-live pacman-init##' /etc/66/service/sddm |
||||
66-disable -t default logind sddm |
||||
66-enable -t default logind sddm |
||||
else |
||||
66-disable -t default artix-live pacman-init |
||||
fi |
||||
} |
@ -1,20 +0,0 @@
|
||||
post_install() { |
||||
gdm=$(pacman -Qi gdm-s6 2> /dev/null) |
||||
if [ "$?" = "0" ]; then |
||||
touch /etc/s6/sv/gdm/dependencies.d/artix-live |
||||
fi |
||||
lightdm=$(pacman -Qi lightdm-s6 2> /dev/null) |
||||
if [ "$?" = "0" ]; then |
||||
touch /etc/s6/sv/lightdm-srv/dependencies.d/artix-live |
||||
fi |
||||
sddm=$(pacman -Qi sddm-s6 2> /dev/null) |
||||
if [ "$?" = "0" ]; then |
||||
touch /etc/s6/sv/sddm/dependencies.d/artix-live |
||||
fi |
||||
sh /usr/share/libalpm/scripts/s6-rc-db-update-hook |
||||
s6-rc-bundle-update -c /etc/s6/rc/compiled add default pacman-init artix-live |
||||
} |
||||
|
||||
post_remove() { |
||||
rm -f /etc/s6/sv/{gdm,lightdm-srv,sddm}/dependencies.d/artix-live |
||||
} |
@ -1,44 +0,0 @@
|
||||
# This will inject artix-live and pacman-init as dependencies for DMs |
||||
# and create default boot tree and needed boot services |
||||
|
||||
post_install() { |
||||
if [ -f /usr/bin/gdm ]; then |
||||
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\ |
||||
'\1artix-live pacman-init )#' /etc/66/service/gdm |
||||
66-disable -t default logind gdm |
||||
66-enable -t default logind gdm |
||||
elif [ -f /usr/bin/lightdm ]; then |
||||
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\ |
||||
'\1artix-live pacman-init )#' /etc/66/service/lightdm |
||||
66-disable -t default logind lightdm |
||||
66-enable -t default logind lightdm |
||||
elif [ -f /usr/bin/sddm ]; then |
||||
sed -i -E 's#@depends\s*=\s*\(\s*([^)]+)\s*\)#@depends = ( '\ |
||||
'\1artix-live pacman-init )#' /etc/66/service/sddm |
||||
66-disable -t default logind sddm |
||||
66-enable -t default logind sddm |
||||
else |
||||
66-enable -t default artix-live pacman-init |
||||
fi |
||||
|
||||
66-tree -n boot |
||||
66-enable -t boot -F boot@system |
||||
} |
||||
|
||||
post_remove() { |
||||
if [ -f /usr/bin/gdm ]; then |
||||
sed -i -E 's# artix-live pacman-init##' /etc/66/service/gdm |
||||
66-disable -t default logind gdm |
||||
66-enable -t default logind gdm |
||||
elif [ -f /usr/bin/lightdm ]; then |
||||
sed -i -E 's# artix-live pacman-init##' /etc/66/service/lightdm |
||||
66-disable -t default logind lightdm |
||||
66-enable -t default logind lightdm |
||||
elif [ -f /usr/bin/sddm ]; then |
||||
sed -i -E 's# artix-live pacman-init##' /etc/66/service/sddm |
||||
66-disable -t default logind sddm |
||||
66-enable -t default logind sddm |
||||
else |
||||
66-disable -t default artix-live pacman-init |
||||
fi |
||||
} |
@ -1,20 +0,0 @@
|
||||
post_install() { |
||||
gdm=$(pacman -Qi gdm-s6 2> /dev/null) |
||||
if [ "$?" = "0" ]; then |
||||
touch /etc/s6/sv/gdm/dependencies.d/artix-live |
||||
fi |
||||
lightdm=$(pacman -Qi lightdm-s6 2> /dev/null) |
||||
if [ "$?" = "0" ]; then |
||||
touch /etc/s6/sv/lightdm-srv/dependencies.d/artix-live |
||||
fi |
||||
sddm=$(pacman -Qi sddm-s6 2> /dev/null) |
||||
if [ "$?" = "0" ]; then |
||||
touch /etc/s6/sv/sddm/dependencies.d/artix-live |
||||
fi |
||||
sh /usr/share/libalpm/scripts/s6-rc-db-update-hook |
||||
s6-rc-bundle-update -c /etc/s6/rc/compiled add default pacman-init artix-live |
||||
} |
||||
|
||||
post_remove() { |
||||
rm -f /etc/s6/sv/{gdm,lightdm-srv,sddm}/dependencies.d/artix-live |
||||
} |
Loading…
Reference in new issue