]> git.pld-linux.org Git - packages/SysVinit.git/commitdiff
- rel 2; init uses /run/initctl now, so migrate to it auto/th/SysVinit-2.94-2
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 28 Feb 2019 11:15:56 +0000 (12:15 +0100)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 28 Feb 2019 11:15:56 +0000 (12:15 +0100)
SysVinit.spec

index 72098988ce7ff3f84eb5a7dd6b58123d87d517bd..8376d0f04ab3abf1ba20a0cf71cfbe846a3f17dd 100644 (file)
@@ -13,7 +13,7 @@ Summary(tr.UTF-8):    System V başlatma programı
 Summary(uk.UTF-8):     Програми, що керують базовими системними процесами
 Name:          SysVinit
 Version:       2.94
-Release:       1
+Release:       2
 License:       GPL v2+
 Group:         Base
 Source0:       http://download.savannah.gnu.org/releases/sysvinit/sysvinit-%{version}.tar.xz
@@ -213,12 +213,16 @@ chmod 600 %{_sysconfdir}/ioctl.save
 chmod 640 /var/log/btmp
 chmod 640 /var/log/faillog
 chmod 664 /var/log/lastlog
-if [ -p /dev/initctl ]; then
+if [ -p /run/initctl ]; then
        %{_sbindir}/telinit u || :
 fi
 
+%triggerun -- SysVinit < 2.94-1
+# it will be needed once until reboot happens
+[ -p /dev/initctl -a ! -e /run/initctl ] && ln -s /dev/initctl /run/initctl
+
 %triggerpostun -- glibc
-if [ -p /dev/initctl ]; then
+if [ -p /run/initctl ]; then
        %{_sbindir}/telinit u || :
 fi
 
This page took 0.096166 seconds and 4 git commands to generate.