aboutsummaryrefslogtreecommitdiff
path: root/modprobe-blacklist
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-05-31 01:11:23 +0200
committerTom Gundersen <teg@jklm.no>2011-05-31 01:11:23 +0200
commit2b188618291d537c0b5da8c3b84902e53436352a (patch)
tree61511eb3f4a7181abdbbec1672367f93c70b3361 /modprobe-blacklist
parent997f095bf69a4470189e1ccfc345f354899192d8 (diff)
downloadinitscripts-2b188618291d537c0b5da8c3b84902e53436352a.tar.xz
Revert "udev: generate blacklist on boot"
This reverts commit 99d64f5789f01243903be4b32078ec38bdce75fa. We decided not to provide a compatibility layer, but rather require the user to create blacklist files in /etc/modprobe.d manually. Hence, this is no longer needed. The reason was that the compatibliy would not be 1-to-1, so it might be missleading to pretend that it was. Also, most people should not need the blacklisting in the first place. Conflicts: Makefile Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'modprobe-blacklist')
-rwxr-xr-xmodprobe-blacklist25
1 files changed, 0 insertions, 25 deletions
diff --git a/modprobe-blacklist b/modprobe-blacklist
deleted file mode 100755
index 8af5d90..0000000
--- a/modprobe-blacklist
+++ /dev/null
@@ -1,25 +0,0 @@
-#!/bin/bash
-#
-# /etc/rc.gen-modules-list
-#
-
-. /etc/rc.conf
-
-declare -a blacklist
-for mod in "${MODULES[@]}"; do
- case $mod in
- !*) blacklist+=("${mod:1}") ;;
- *) ;;
- esac
-done
-
-# create new module blacklist in /run/initscripts, there should be a symlink in /etc/modprobe.d/ pointing here
-if [[ $blacklist ]]; then
- /bin/mkdir -p /run/initscripts
- echo "# Autogenerated from rc.conf at boot, do not edit" > /run/initscripts/modprobe-blacklist.conf
- (( ${#blacklist[@]} )) && printf 'blacklist %s\n' "${blacklist[@]}" >> /run/initscripts/modprobe-blacklist.conf
-fi
-
-unset blacklist
-
-# vim: set noet ts=2 sw=2: