]> git.pld-linux.org Git - projects/rc-scripts.git/blobdiff - rc.d/rc.sysinit
turn off by default RUN_USERPNP and RUN_KERNELPNP
[projects/rc-scripts.git] / rc.d / rc.sysinit
index d50a57005719c2d35ca799558e984bbc7968c3d9..0afa083f775b6bde075d6743002772798308f639 100755 (executable)
@@ -434,11 +434,11 @@ if ! is_yes "$VSERVER"; then
        fi
 
        # set up pnp and kernel pnp
-       if [ -z "$nopnp" ]; then
-               if ! is_no "$RUN_USERPNP" && [ -x /sbin/isapnp -a -f /etc/isapnp/isapnp.conf ]; then
+       if is_yes "$RUN_USERPNP" || is_yes "$RUN_KERNELPNP"; then
+               if [ -z "$nopnp" ] && is_yes "$RUN_USERPNP" && [ -x /sbin/isapnp -a -f /etc/isapnp/isapnp.conf ]; then
                        run_cmd "Setting up ISA PNP devices (userspace pnp)" /sbin/isapnp /etc/isapnp/isapnp.conf
                fi
-               if ! is_no "$RUN_KERNELPNP"; then
+               if [ -z "$nopnp" ] && is_yes "$RUN_KERNELPNP"; then
                        modprobe -s isa-pnp
                        if [ -e /proc/isapnp -a -f /etc/isapnp/isapnp-kernel.conf ]; then
                                show "Setting up ISA PNP devices (kernelspace pnp)"; busy
This page took 0.029501 seconds and 4 git commands to generate.