Hallo, Am Wed, 07 Dec 2005, Manfred Tremmel schrieb: [..]
Für die Einbindung hab ich dann ein eigenes Startscript gebaut, das prüft, ob die Platte dranhängt und nur dann mounted, wenn das der Fall ist:
# mount usb harddisk if connected USBHARDDISC=`grep -c "Vendor=0409 ProdID=006a" /proc/bus/usb/devices` if test "${USBHARDDISC}" = "1"; then mount /media/usbplatte fi
==== VERSION a ==== #!/bin/sh IDSTR='Vendor=0409 ProdID=006a' MOUNTPT='/media/usbplatte' grep -q "$IDSTR" /proc/bus/usb/devices && mount "$MOUNTPT" ==== ==== VERSION b ==== #!/bin/sh IDSTR='Vendor=0409 ProdID=006a' MOUNTPT='/media/usbplatte' if grep -q "$IDSTR" /proc/bus/usb/devices; then mount "$MOUNTPT" fi ==== Als Startscript sollte man das in eine passend benamste Kopie von /etc/init.d/skeleton unter "start)" einbauen. HTH, HAND, HANN -dnh -- ... just what are we going to say to an alien race if we make contact? "Do you have Napster?" "Can we borrow one of your rainforests?" "Stop making crop circles!" -- Scott Barber, in rasfw