qube:~# cd /etc/init.d/
qube:/etc/init.d# mv usb usb.orig
qube:/etc/init.d# cp usb.orig usb
qube:/etc/init.d# ls -l usb*
-rwxr-xr-x 1 root root 2315 Feb 23 21:15 usb
-rwxr-xr-x 1 root root 2315 Feb 22 17:15 usb.orig
qube:/etc/init.d# vi usb
	:
	:
qube:/etc/init.d# diff -c usb.orig usb
*** usb.orig    Sun Feb 22 17:15:11 2009
--- usb Mon Feb 23 21:17:06 2009
***************
*** 6,11 ****
--- 6,15 ----
        then
                echo on > /proc/buffalo/gpio/power_control/usb0
        fi
+       if [ -e /proc/buffalo/gpio/power_control/usb1 ]
+       then
+               echo on > /proc/buffalo/gpio/power_control/usb1
+       fi
        if [ -e /proc/buffalo/usb_control ]
        then
                echo on > /proc/buffalo/usb_control
qube:/etc/init.d#
Feb 23 21:21:03 qube kernel: scsi 2:0:0:0: Direct-Access eUSB Memory Stick 5.06 PQ: 0 ANSI: 2 Feb 23 21:21:03 qube kernel: sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB) Feb 23 21:21:03 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off Feb 23 21:21:03 qube kernel: sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB) Feb 23 21:21:03 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off Feb 23 21:21:03 qube kernel: sdb: sdb1 Feb 23 21:21:03 qube kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk Feb 23 21:21:03 qube kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 qube:~#認識された。
qube:~# mkdir /tmp/usb qube:~# mount /dev/sdb1 /tmp/usb qube:~# ls -l /tmp/usb total 16 drwxr-xr-x 3 root root 16384 Mar 20 2007 dcim -r-xr-xr-x 1 root root 0 Mar 23 2002 memstick.ind qube:~# umount /tmp/usb/ qube:~#OK
yasunari@ude:/home/linkstation/HackKit/unified$ diff -c hackkit_090222D.sh hackkit_090223.sh
*** hackkit_090222D.sh  2009-02-22 17:53:10.111523000 +0900
--- hackkit_090223.sh   2009-02-23 20:48:53.609518250 +0900
***************
*** 391,396 ****
--- 391,400 ----
        then
                echo on > /proc/buffalo/gpio/power_control/usb0
        fi
+       if [ -e /proc/buffalo/gpio/power_control/usb1 ]
+       then
+               echo on > /proc/buffalo/gpio/power_control/usb1
+       fi
        if [ -e /proc/buffalo/usb_control ]
        then
                echo on > /proc/buffalo/usb_control
yasunari@ude:/home/linkstation/HackKit/unified$
| 
 | 
| ← ウェスタンデジタル、家庭向け1TB/2TB NASを国内販売 | ハックの記録 LinkStation/玄箱 をハックしよう | → USB デバイスの確認 |