PDA

View Full Version : Knoppix autodetection & Gentoo



jago25_98
10-30-2004, 12:01 AM
I've spent too long fighting hotplug.

But what is the setup of Gentoo and knx-autodetect? Are all the tools in portage?



betty.net[~] $ esearch -S knoppix
[ Results for search key : knoppix ]
[ Applications found : 3 ]

* sys-apps/ddcxinfo-knoppix
Latest version available: 0.6
Latest version installed: [ Not Installed ]
Size of downloaded files: 35 kB
Homepage: http://www.knopper.net
Description: Program to automatically probe a monitor for info

* sys-apps/hwdata-knoppix
Latest version available: 0.107
Latest version installed: [ Not Installed ]
Size of downloaded files: 256 kB
Homepage: http://www.knopper.net
Description: Data for the hwsetup program

* sys-apps/kudzu-knoppix
Latest version available: 1.1.36-r1
Latest version installed: [ Not Installed ]
Size of downloaded files: 691 kB
Homepage: http://www.knopper.net/
Description: Knoppix version of the Red Hat hardware detection


Or is this different from
http://freshmeat.net/projects/knx-autoconfig-ports/
?

I'm just trying to get things like mas-storage devices to automount and so forth but finding setting it up from scratch a real pain and wondered if this could help. Perhaps someone might point me towards some ready set up hotplug system setup for mass-storage automounting etc? It's especially annoying as without hotplug I can't scan anymore:



betty.net[~] $ ls /etc/hotplug.d/
default
betty.net[~] $ ls /etc/hotplug
blacklist input.agent scsi.agent usb.handmap
dasd.agent input.rc tape.agent usb.rc
dasd.permissions net.agent tape.permissions usb.usermap
firmware.agent pci usb
hotplug.functions pci.agent usb.agent
ieee1394.agent pci.rc usb.distmap
betty.net[~] $ ls /etc/hotplug/usb
libsane.usermap usb-storage usbcam-gphoto2.usermap
libsane.usermap.all usb-storage-remove
libusbscanner usbcam
betty.net[~] $ ls /etc/hotplug/*
/etc/hotplug/blacklist /etc/hotplug/pci.rc
/etc/hotplug/dasd.agent /etc/hotplug/scsi.agent
/etc/hotplug/dasd.permissions /etc/hotplug/tape.agent
/etc/hotplug/firmware.agent /etc/hotplug/tape.permissions
/etc/hotplug/hotplug.functions /etc/hotplug/usb.agent
/etc/hotplug/ieee1394.agent /etc/hotplug/usb.distmap
/etc/hotplug/input.agent /etc/hotplug/usb.handmap
/etc/hotplug/input.rc /etc/hotplug/usb.rc
/etc/hotplug/net.agent /etc/hotplug/usb.usermap
/etc/hotplug/pci.agent

/etc/hotplug/pci:

/etc/hotplug/usb:
libsane.usermap usb-storage usbcam-gphoto2.usermap
libsane.usermap.all usb-storage-remove
libusbscanner usbcam
betty.net[~] $ less /etc/hotplug/libusbscanner
/etc/hotplug/libusbscanner: No such file or directory
betty.net[~] $ less /etc/hotplug/usb/libusbscanner
#!/bin/sh

# This script just causes hotplug to cat out a load of output to the terminal
# This file is part of sane-backends.
#
# This script changes the permissions and ownership of a USB device
under
# /proc/bus/usb to grant access to this device to users in the scann
er group.
#
# Ownership is set to root:scanner, permissions are set to 0660.
#
# Arguments :
# -----------
# ACTION=[add|remove]
# DEVICE=/proc/bus/usb/BBB/DDD
# TYPE=usb

#if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
# chown root:scanner "$DEVICE"
# chmod 0660 "$DEVICE"
#fi


# That's an insecure but simple alternative
# Everyone has access to the scanner

if [ "$ACTION" = "add" -a "$TYPE" = "usb" ]; then
chmod 0666 "$DEVICE"
fi