diff options
author | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
---|---|---|
committer | Cecil Hugh Watson <knoppmyth@gmail.com> | 2009-09-26 01:57:08 (GMT) |
commit | 7b29169fff9e7c624890c5edffe85def8a293136 (patch) | |
tree | 47753889faa3a2063b66d1c7e7681e703eb1b39a /abs/core/udev/mod-blacklist.sh | |
parent | c491dea779dac29afff3578bf8245943817c2339 (diff) | |
download | linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.zip linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.gz linhes_pkgbuild-7b29169fff9e7c624890c5edffe85def8a293136.tar.bz2 |
LinHES 6.01.00
Diffstat (limited to 'abs/core/udev/mod-blacklist.sh')
-rwxr-xr-x | abs/core/udev/mod-blacklist.sh | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/abs/core/udev/mod-blacklist.sh b/abs/core/udev/mod-blacklist.sh deleted file mode 100755 index 264192a..0000000 --- a/abs/core/udev/mod-blacklist.sh +++ /dev/null @@ -1,47 +0,0 @@ -#! /bin/bash -# Export a combined blacklist of all modules -# for use by the load-modules script -# -# NOTE: we only need bash because of rc.conf, but this -# is a one-time use script, so we're good - -. /etc/rc.conf - -# grab modules from rc.conf -BLACKLIST="${MOD_BLACKLIST[@]}" - -if [ -f /proc/cmdline ]; then - for cmd in $(cat /proc/cmdline); do - case $cmd in - *=*) eval $cmd ;; - esac - done - #parse cmdline entries of the form "disablemodules=x,y,z" - if [ -n "$disablemodules" ]; then - BLACKLIST="$BLACKLIST $(echo $disablemodules | sed 's|,| |g')" - fi - if [ "$load_modules" == "off" ]; then - MOD_AUTOLOAD="no" - fi -fi - -# blacklist framebuffer modules -DRIVER_DIR="/lib/modules/$(uname -r)/kernel/drivers/" -for x in $DRIVER_DIR/video/*/*fb*; do - BLACKLIST="$BLACKLIST $(basename $x .ko)" -done -for x in $DRIVER_DIR/video/*fb*; do - BLACKLIST="$BLACKLIST $(basename $x .ko)" -done - -#MODULES entries in rc.conf that begin with ! are blacklisted -for mod in ${MODULES[@]}; do - if [ "${mod}" != "${mod#!}" ]; then - BLACKLIST="$BLACKLIST ${mod#!}" - fi -done - -echo "MOD_AUTOLOAD=\"$MOD_AUTOLOAD\"" -echo "BLACKLIST=\"$BLACKLIST\"" - -# vim: set et ts=4: |