diff options
author | Tom Gundersen <teg@jklm.no> | 2012-05-15 01:44:52 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2012-05-29 12:48:18 +0200 |
commit | 6aae67af18fcb9af1ab47c7dd4bfd9c265f0203b (patch) | |
tree | 5fab7dbe3b0f28abb3d65b73d670b0ccc08f54fa /arch-binfmt | |
parent | 6f3ad111dd2dc18e0d393d59e3a1b383e69d0741 (diff) | |
download | initscripts-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-binfmt')
-rwxr-xr-x | arch-binfmt | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/arch-binfmt b/arch-binfmt deleted file mode 100755 index 91468ef..0000000 --- a/arch-binfmt +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/bash -# -# /usr/lib/initscripts/arch-binfmt -# -# Configure additional binary formats at boot -# - -shopt -s nullglob - -declare -a binfmt_d -# files given has argv supersede config files -if (( $# > 0 )); then - for arg; do [[ -r "$arg" ]] && binfmt_d+=("$arg"); done -else - binfmt_d=( - /usr/lib/binfmt.d/*.conf - /etc/binfmt.d/*.conf - /run/binfmt.d/*.conf - ) -fi - -# check there is file to load -(( ${#binfmt_d[@]} > 0 )) || exit 1 - -# mount binfmt_misc if api filesystem is missing -mountpoint -q /proc/sys/fs/binfmt_misc || - mount -t binfmt_misc binfmt /proc/sys/fs/binfmt_misc - -# files declared later in the binfmt_d array will override earlier -# Example: `/etc/binfmt.d/foo.conf' supersedes `/usr/lib/binfmt.d/foo.conf'. -declare -A fragments -for path in "${binfmt_d[@]}"; do - [[ -f $path ]] && fragments[${path##*/}]=$path -done - -for path in "${fragments[@]}"; do - while read -r line; do - [[ ${line:0:1} == '#' ]] && continue - printf "%s" "$line" > /proc/sys/fs/binfmt_misc/register - done < "$path" -done - -: - -# vim: set ts=2 sw=2 noet: |