diff options
Diffstat (limited to 'deps/elogind/doinst.sh')
-rwxr-xr-x | deps/elogind/doinst.sh | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/deps/elogind/doinst.sh b/deps/elogind/doinst.sh index 75adb23..dc85465 100755 --- a/deps/elogind/doinst.sh +++ b/deps/elogind/doinst.sh @@ -26,16 +26,23 @@ preserve_perms() { # # Preserve permissions while moving into place: +config etc/elogind/logind.conf.new preserve_perms etc/rc.d/rc.elogind.new -# -# Update rc.local so that elogind will be functional after boot: -if ! grep "rc.elogind" etc/rc.d/rc.local 1>/dev/null 2>/dev/null ; then - cat <<_EOM_ >> etc/rc.d/rc.local - -if [ -x /etc/rc.d/rc.elogind ]; then - # Create runtime for elogind (standalone logind extracted from systemd): - /etc/rc.d/rc.elogind -fi -_EOM_ +if pgrep -f elogind-daemon | grep -q 'elogind-daemon'; then + echo "Reloading elogind-daemon..." + pkill -HUP -f elogind-daemon fi + +## Now taken care of in Slackware's /etc/rc.d/rc.M: +## +## Update rc.local so that elogind will be functional after boot: +#if ! grep "rc.elogind" etc/rc.d/rc.local 1>/dev/null 2>/dev/null ; then +# cat <<_EOM_ >> etc/rc.d/rc.local +# +#if [ -x /etc/rc.d/rc.elogind ]; then +# # Create runtime for elogind (standalone logind extracted from systemd): +# /etc/rc.d/rc.elogind start +#fi +#_EOM_ +#fi |