US Robotics USR2410 Manual de instalación Pagina 52

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 67
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 51
48 5. Debian and other Software Packages
sion in /usr/local/bin will automagically executed, if a non-root user not in the group cdrom types cdrecord at the
command prompt.
/usr/local/bin/cdrecord:
#!/bin/sh
prog=‘basename $0‘
test "X$SUPERCMD" = "X$prog" || exec /usr/bin/super $prog ${1+"$@"}
/usr/bin/cdrecord $@
The corresponding entry in /etc/super.tab reads:
/etc/super.tab:
cdrecord /usr/local/bin/cdrecord uid=root info="burn CD−R" \
<registered user here>
5. 18. External FirewireHard Disk
Although the 2.4 kernel series does not yet support hotplugging of SCSI and IEEE 1394 devices, we can easily
configure for a simple manual setup. Wemakeuse of twoscripts, namely rescan-scsi-bus.sh available from the
IEEE 1394 For Linux project web pages and a homegrown helper script, to load the kernel necessary modules
and scan for newSCSI devices:
/usr/local/bin/firewire:
#!/bin/sh
prog=‘basename $0‘
test "X$SUPERCMD" = "X$prog" || exec /usr/bin/super $prog ${1+"$@"}
PATH="/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin"
ADDRESS=""
case "$1" in
up|start)
modprobe ohci1394 && modprobe sbp2 && modprobe sd_mod
sleep 1
rescan−scsi−bus
;;
down|stop)
modprobe −r ohci1394 && modprobe −r sbp2 && modprobe −r sd_mod
sleep 1
rescan−scsi−bus −r
;;
restart)
rescan−scsi−bus −r
sleep 1
rescan−scsi−bus
;;
*)
echo "Usage: firewire [up|start|down|stop|restart]"
;;
esac
Note: Wehav e renamed rescan-scsi-bus.sh into rescan-scsi-bus.
As before, we register our helper script with the super framework by adding the following lines to /etc/super.tab:
/etc/super.tab:
firewire /usr/local/bin/firewire uid=root info="start/stop IEEE 1394" \
<registered user here>
After physically plugging in the hard disk and launching the Firewire HD support by issuing the command
firewire start, the disk shows up as /dev/sda and can be accessed as anyother SCSI disk.
Vista de pagina 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 66 67

Comentarios a estos manuales

Sin comentarios