aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--initscripts.spec10
-rw-r--r--inittab18
2 files changed, 16 insertions, 12 deletions
diff --git a/initscripts.spec b/initscripts.spec
index 0c48cd24..ee5d191d 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -59,17 +59,19 @@ ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc2.d/S99local
ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc3.d/S99local
ln -s ../rc.local $RPM_BUILD_ROOT/etc/rc.d/rc5.d/S99local
+# These are LSB compatibility symlinks. At some point in the future
+# the actual files will be here instead of symlinks
for i in 0 1 2 3 4 5 6 ; do
ln -s rc.d/rc$i.d $RPM_BUILD_ROOT/etc/rc$i.d
done
-
-ln -s rc.d/init.d $RPM_BUILD_ROOT/etc/init.d
+for i in init.d rc rc.sysinit; do
+ ln -s rc.d/$i $RPM_BUILD_ROOT/etc/$i
+done
mkdir -p $RPM_BUILD_ROOT/var/{log,run}
touch $RPM_BUILD_ROOT/var/run/utmp
touch $RPM_BUILD_ROOT/var/log/wtmp
-
%pre
/usr/sbin/groupadd -g 22 -r -f utmp
@@ -193,6 +195,8 @@ rm -rf $RPM_BUILD_ROOT
/etc/rc[0-9].d
%config(missingok) /etc/rc.d/rc[0-9].d/*
/etc/init.d
+/etc/rc
+/etc/rc.sysinit
%config(missingok) /etc/rc.d/init.d/*
%config /etc/rc.d/rc
%config(noreplace) /etc/rc.d/rc.local
diff --git a/inittab b/inittab
index 09fc0acd..4a9f63ba 100644
--- a/inittab
+++ b/inittab
@@ -18,15 +18,15 @@
id:3:initdefault:
# System initialization.
-si::sysinit:/etc/rc.sysinit
-
-l0:0:wait:/etc/rc 0
-l1:1:wait:/etc/rc 1
-l2:2:wait:/etc/rc 2
-l3:3:wait:/etc/rc 3
-l4:4:wait:/etc/rc 4
-l5:5:wait:/etc/rc 5
-l6:6:wait:/etc/rc 6
+si::sysinit:/etc/rc.d/rc.sysinit
+
+l0:0:wait:/etc/rc.d/rc 0
+l1:1:wait:/etc/rc.d/rc 1
+l2:2:wait:/etc/rc.d/rc 2
+l3:3:wait:/etc/rc.d/rc 3
+l4:4:wait:/etc/rc.d/rc 4
+l5:5:wait:/etc/rc.d/rc 5
+l6:6:wait:/etc/rc.d/rc 6
# Things to run in every runlevel.
ud::once:/sbin/update