procps/boot.sysctl
Cristian Rodríguez a082bb1e4a Accepting request 71353 from home:lnussel:branches:Base:System
- load sysctls earlier (bnc#664550)
- move distro defaults to /lib/sysctl.d to avoid .rpmnew files
- enable IPv6 privacy by default (bnc#678066)

I've sent the --system and --pattern path upstream but they weren't accepted
yet. So this is tentative but we need the /lib/sysctl.d feature to be able to
provide distro defaults in a sane way.

OBS-URL: https://build.opensuse.org/request/show/71353
OBS-URL: https://build.opensuse.org/package/show/Base:System/procps?expand=0&rev=46
2011-05-28 20:50:18 +00:00

49 lines
982 B
Bash

#! /bin/sh
#
# Copyright (c) 2001 SuSE GmbH Nuernberg, Germany.
# Copyright (c) 2011 SUSE Linux Products GmbH Nuernberg, Germany.
#
# /etc/init.d/boot.sysctl
#
### BEGIN INIT INFO
# Provides: boot.sysctl
# Required-Start: $null
# Should-Start: $null
# Required-Stop: $null
# Should-Stop: $null
# Default-Start: B
# Default-Stop:
# Short-Description: Apply sysctl settings
# Description: Apply sysctl settings
### END INIT INFO
. /etc/rc.status
rc_reset
case "$1" in
start)
echo -n "Applying sysctl settings"
/sbin/sysctl -e -q --system
rc_status -v -r
if [ -s /etc/sysconfig/sysctl -a -x /lib/aaa_base/convert_sysctl ]; then
echo -n " Warning: applying settings from obsolete /etc/sysconfig/sysctl"
/lib/aaa_base/convert_sysctl --stdout | sysctl -e -q -f -
rc_status -v -r
fi
;;
stop)
# skip / do nothing
;;
status)
rc_failed 4
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|status}"
exit 1
;;
esac
rc_exit