1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
11 groups = Base System/Boot
14 summary = The set of scripts that initalize the system.
17 The initscripts package contains the basic system scripts used to boot \
18 your system and shut the system down cleanly.
21 # Nothing to download.
30 DIR_APP = %{DIR_SOURCE}
37 cd src && make %{PARALLELISMFLAGS}
45 cd src && make install clean DESTDIR=%{BUILDROOT}
48 install -v -m 755 %{DIR_SOURCE}/rc.local %{BUILDROT}/etc/rc.local
51 mkdir -pv %{BUILDROOT}/lib/udev/rules.d/
52 cp -vf %{DIR_SOURCE}/udev/* %{BUILDROOT}/lib/udev/rules.d/
76 prerequires = coreutils shadow-utils
79 groupadd -g 22 -r -f utmp
83 touch /var/log/{b,w}tmp /var/run/utmp
84 chown root:utmp /var/log/{b,w}tmp /var/run/utmp
85 chmod 664 /var/log/wtmp /var/run/utmp
86 chmod 600 /var/log/btmp
88 # Just search for new unit files that were just installed.
89 /bin/systemctl daemon-reload >/dev/null 2>&1 || :
91 # Enable rc.local as default.
92 /bin/systemctl --no-reload enable rc-local.service >/dev/null 2>&1 || :
95 # Disable the service that is to be removed and stop it if it is still running.
97 /bin/systemctl --no-reload disable rc-local.service >/dev/null 2>&1 || :
98 /bin/systemctl stop rc-local.service >/dev/null 2>&1 || :
101 # Just tell systemd that unitfiles have been removed.
103 /bin/systemctl daemon-reload >/dev/null 2>&1 || :