aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--initscripts.spec3
2 files changed, 2 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d10a71cd..91f9a926 100644
--- a/Makefile
+++ b/Makefile
@@ -29,7 +29,7 @@ install:
mkdir -p $(ROOT)/etc/sysconfig/console
install -m644 sysconfig/init $(ROOT)/etc/sysconfig/init
cp -af rc.d/* sysconfig ppp $(ROOT)/etc
- ln -s /etc $(ROOT)/etc/rc.d
+ ln -s . $(ROOT)/etc/rc.d
mkdir -p $(ROOT)/sbin
mv $(ROOT)/etc/sysconfig/network-scripts/ifup $(ROOT)/sbin
mv $(ROOT)/etc/sysconfig/network-scripts/ifdown $(ROOT)/sbin
diff --git a/initscripts.spec b/initscripts.spec
index f6204181..ff3e943e 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -71,8 +71,7 @@ if [ -d /etc/rc.d -a -d /etc/init.d ]; then
exit 1
fi
if [ -d /etc/rc.d ]; then
- mv -f /etc/rc.d/* /etc
- ln -snf . /etc/rc.d
+ mv -f /etc/rc.d/* /etc && rm -rf /etc/rc.d && ln -snf . /etc/rc.d
fi
%post