ln -s ../init.d/network $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K90network
ln -s ../init.d/allowlogin $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K01allowlogin
ln -s ../init.d/sys-chroots $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K01sys-chroots
+ ln -s ../init.d/local $RPM_BUILD_ROOT/etc/rc.d/rc$i.d/K01local
done
> $RPM_BUILD_ROOT/var/log/dmesg
# in static-routes can be also rules:
ln -s static-routes $RPM_BUILD_ROOT/etc/sysconfig/static-rules
+# msg cache
+touch $RPM_BUILD_ROOT/etc/rc.d/.rc-scripts.cache
+
%clean
rm -rf $RPM_BUILD_ROOT
mv -f /etc/inittab.rpmsave /etc/inittab
fi
touch /var/log/dmesg
-chmod 000 /var/log/dmesg
chown root:root /var/log/dmesg
chmod 640 /var/log/dmesg
+touch /etc/rc.d/.rc-scripts.cache
+chmod 644 /etc/rc.d/.rc-scripts.cache
+chown root:root /etc/rc.d/.rc-scripts.cache
# move network interfaces description files to new location
%triggerpostun -- initscripts
%attr(754,root,root) /etc/rc.d/rc.init
%attr(754,root,root) /etc/rc.d/rc.sysinit
%attr(754,root,root) /etc/rc.d/rc.shutdown
-
%attr(754,root,root) /etc/rc.d/rc?.d/K??allowlogin
%attr(754,root,root) /etc/rc.d/rc?.d/K??cpusets
%attr(754,root,root) /etc/rc.d/rc?.d/K??killall
+%attr(754,root,root) /etc/rc.d/rc?.d/K??local
%attr(754,root,root) /etc/rc.d/rc?.d/K??network
%attr(754,root,root) /etc/rc.d/rc?.d/K??random
%attr(754,root,root) /etc/rc.d/rc?.d/K??single
%attr(754,root,root) /etc/rc.d/rc?.d/S??sys-chroots
%attr(754,root,root) /etc/rc.d/rc?.d/S??timezone
+%ghost /etc/rc.d/.rc-scripts.cache
+
%attr(755,root,root) /etc/profile.d/lang.*sh
%attr(755,root,root) %{_bindir}/doexec