aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2013-08-16 08:13:35 +0200
committerLukas Nykryn <lnykryn@redhat.com>2013-08-19 14:11:22 +0200
commit3c14e9a948bc633ae7370b4d3cb1a7b8a21cd12d (patch)
treeac03522c7b398d8f4cb91af6ebd160a291f05f15
parentab22271da0910ccd0f6176a150b193e723e843d9 (diff)
downloadinitscripts-3c14e9a948bc633ae7370b4d3cb1a7b8a21cd12d.tar
initscripts-3c14e9a948bc633ae7370b4d3cb1a7b8a21cd12d.tar.gz
initscripts-3c14e9a948bc633ae7370b4d3cb1a7b8a21cd12d.tar.bz2
initscripts-3c14e9a948bc633ae7370b4d3cb1a7b8a21cd12d.tar.xz
initscripts-3c14e9a948bc633ae7370b4d3cb1a7b8a21cd12d.zip
symlink /etc/sysctl.conf -> /etc/sysctl.d/
-rw-r--r--Makefile2
-rw-r--r--initscripts.spec1
2 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3e3a435a..ee4fee52 100644
--- a/Makefile
+++ b/Makefile
@@ -29,12 +29,14 @@ install:
install -m755 sys-unconfig $(ROOT)/usr/sbin
install -m644 service.8 sys-unconfig.8 $(ROOT)$(mandir)/man8
mkdir -p -m 755 $(ROOT)/usr/lib/sysctl.d
+ mkdir -p -m 755 $(ROOT)/etc/sysctl.d
install -m644 sysctl.conf $(ROOT)/usr/lib/sysctl.d/00-system.conf
if uname -m | grep -q sparc ; then \
install -m644 sysctl.conf.sparc $(ROOT)/usr/lib/sysctl.d/00-system.conf ; fi
if uname -m | grep -q s390 ; then \
install -m644 sysctl.conf.s390 $(ROOT)/usr/lib/sysctl.d/00-system.conf ; fi
install -m 644 sysctl.conf.README $(ROOT)/etc/sysctl.conf
+ ln -s ../sysctl.conf $(ROOT)/etc/sysctl.d/99-sysctl.conf
install -m755 -d $(ROOT)/etc/rc.d $(ROOT)/etc/sysconfig
cp -af rc.d/init.d $(ROOT)/etc/rc.d/
diff --git a/initscripts.spec b/initscripts.spec
index e7034b50..f732ab3a 100644
--- a/initscripts.spec
+++ b/initscripts.spec
@@ -173,6 +173,7 @@ rm -rf $RPM_BUILD_ROOT
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) /etc/rc.d/rc.local
%config(noreplace) /etc/sysctl.conf
/usr/lib/sysctl.d/00-system.conf
+/etc/sysctl.d/99-sysctl.conf
%exclude /etc/profile.d/debug*
/etc/profile.d/*
/usr/sbin/sys-unconfig