aboutsummaryrefslogtreecommitdiff
path: root/arch-sysctl
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2012-05-15 01:44:52 +0200
committerTom Gundersen <teg@jklm.no>2012-05-29 12:48:18 +0200
commit6aae67af18fcb9af1ab47c7dd4bfd9c265f0203b (patch)
tree5fab7dbe3b0f28abb3d65b73d670b0ccc08f54fa /arch-sysctl
parent6f3ad111dd2dc18e0d393d59e3a1b383e69d0741 (diff)
downloadinitscripts-6aae67af18fcb9af1ab47c7dd4bfd9c265f0203b.tar.xz
tmpfiles,sysctl,binfmt: use the systemd tools
No point in reinventing the wheel. These and other tools are shipped in the systemd-tools package. Functionality should be unchanged, but we no longer have to maintain the code. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'arch-sysctl')
-rwxr-xr-xarch-sysctl29
1 files changed, 0 insertions, 29 deletions
diff --git a/arch-sysctl b/arch-sysctl
deleted file mode 100755
index f73f1f0..0000000
--- a/arch-sysctl
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/bin/bash
-#
-# /usr/lib/initscripts/arch-sysctl
-#
-# Load sysctl configuration files following
-# http://0pointer.de/public/systemd-man/sysctl.d.html
-#
-
-shopt -s nullglob
-
-declare -a sysctl_d=(
- /usr/lib/sysctl.d/*.conf
- /etc/sysctl.d/*.conf
- /run/sysctl.d/*.conf
- /etc/sysctl.conf
-)
-declare -A fragments
-
-# files declared later in the sysctl_d array will override earlier
-# Example: `/etc/sysctl.d/foo.conf' supersedes `/usr/lib/sysctl.d/foo.conf'.
-for path in "${@:-${sysctl_d[@]}}"; do
- [[ -f $path ]] && fragments[${path##*/}]=$path
-done
-
-for path in "${fragments[@]}"; do
- sysctl -q -p"$path"
-done
-
-# vim: set ts=2 sw=2 noet: