Вот что пытаюсь сделать с роутером через putty:
Code:
nvram set wan_usb_standard=1
nvram set wan_usb_username=
nvram set wan_usb_passwd=
nvram set wan_usb_port=0
nvram set wan_usb_speed= 460800
nvram set wan_usb_apn=internet
nvram set wan_usb_dialnumber=*99#
nvram set wan_usb_vend= 0x12d1
nvram set wan_usb_prod= 0x1001
nvram set wan_usb_mtu=1492
nvram set wan_usb_mru=1492
nvram set wan_usb_zerocd=
nvram commit
echo "#!/bin/sh" > /usr/local/sbin/post-boot
echo "modem" >> /usr/local/sbin/post-boot
chmod +x /usr/local/sbin/post-boot
echo "/usr/local/sbin/post-boot" > /usr/local/.files
flashfs enable
flashfs save
flashfs commit
reboot
А вот что получаю, подключая модем(лог):
PHP Code:
Jan 23 18:50:27 kernel: hub.c: new USB device 00:03.1-1.2, assigned address 5
Jan 23 18:50:28 kernel: Vendor: HUAWEI Model: Mass Storage Rev: 2.31
Jan 23 18:50:28 kernel: Type: CD-ROM ANSI SCSI revision: 02
Jan 23 18:50:28 kernel: USB device connected to the SCSI subsystem
Jan 23 18:50:29 kernel: Vendor: HUAWEI Model: MMC Storage Rev: 2.31
Jan 23 18:50:29 kernel: Type: Direct-Access ANSI SCSI revision: 02
Jan 23 18:50:29 kernel: Attached scsi removable disk sdb at scsi1, channel 0, id 0, lun 0
Jan 23 18:50:29 kernel: sdb: Waiting for disc 1 to settle.
Jan 23 18:50:32 kernel: sdb: Unit Not Ready, sense:
Jan 23 18:50:32 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 23 18:50:32 kernel: ASC=3a ASCQ= 0
Jan 23 18:50:32 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 23 18:50:32 kernel: sdb : READ CAPACITY failed.
Jan 23 18:50:32 kernel: sdb : status = 1, message = 00, host = 0, driver = 08
Jan 23 18:50:32 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 23 18:50:32 kernel: ASC=3a ASCQ= 0
Jan 23 18:50:32 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 23 18:50:32 kernel: sdb : block size assumed to be 512 bytes, disk size 1GB.
Jan 23 18:50:32 kernel: sdb: Write Protect is on
Jan 23 18:50:32 kernel: /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:10, sector 0
Jan 23 18:50:32 kernel: I/O error: dev 08:10, sector 0
Jan 23 18:50:32 kernel: unable to read partition table
Jan 23 18:50:32 kernel: USB device connected to the SCSI subsystem
Jan 23 18:50:41 kernel: Device busy for revalidation (usage=1)
Jan 23 18:50:41 kernel: sda: Waiting for disc 0 to settle.
Jan 23 18:50:41 kernel: sda: Unit Not Ready, error = 0x70000
Jan 23 18:50:41 kernel: sda : READ CAPACITY failed.
Jan 23 18:50:41 kernel: sda : status = 0, message = 00, host = 7, driver = 00
Jan 23 18:50:41 kernel: sda : sense not available.
Jan 23 18:50:41 kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jan 23 18:50:41 kernel: /dev/scsi/host0/bus0/target0/lun0: I/O error: dev 08:00, sector 0
Jan 23 18:50:41 kernel: I/O error: dev 08:00, sector 0
Jan 23 18:50:41 kernel: unable to read partition table
Jan 23 18:50:41 kernel: Device busy for revalidation (usage=1)
Jan 23 18:50:41 kernel: Device busy for revalidation (usage=1)
Jan 23 18:50:41 kernel: Device busy for revalidation (usage=1)
Jan 23 18:50:41 kernel: Device busy for revalidation (usage=1)
Jan 23 18:50:41 kernel: sdb: Waiting for disc 1 to settle.
Jan 23 18:50:43 kernel: sdb: Unit Not Ready, sense:
Jan 23 18:50:43 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 23 18:50:43 kernel: ASC=3a ASCQ= 0
Jan 23 18:50:43 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 23 18:50:44 kernel: sdb : READ CAPACITY failed.
Jan 23 18:50:44 kernel: sdb : status = 1, message = 00, host = 0, driver = 08
Jan 23 18:50:44 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 23 18:50:44 kernel: ASC=3a ASCQ= 0
Jan 23 18:50:44 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 23 18:50:44 kernel: sdb : block size assumed to be 512 bytes, disk size 1GB.
Jan 23 18:50:44 kernel: sdb: Write Protect is on
Jan 23 18:50:44 kernel: /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:10, sector 0
Jan 23 18:50:44 kernel: I/O error: dev 08:10, sector 0
Jan 23 18:50:44 kernel: Device busy for revalidation (usage=1)
Jan 23 18:50:44 kernel: sdb: Waiting for disc 1 to settle.
Jan 23 18:50:47 kernel: sdb: Unit Not Ready, sense:
Jan 23 18:50:47 kernel: Info fld=0x0, Current 00:00: sns = f0 2
Jan 23 18:50:47 kernel: ASC=3a ASCQ= 0
Jan 23 18:50:47 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 23 18:50:47 kernel: sdb : READ CAPACITY failed.
Jan 23 18:50:47 kernel: sdb : status = 1, message = 00, host = 0, driver = 08
Jan 23 18:50:47 kernel: Info fld=0x0, Current sd00:00: sns = f0 2
Jan 23 18:50:47 kernel: ASC=3a ASCQ= 0
Jan 23 18:50:47 kernel: Raw sense data:0xf0 0x00 0x02 0x00 0x00 0x00 0x00 0x0a 0x00 0x00 0x00 0x00 0x3a 0x00 0x00 0x00 0x00 0x00
Jan 23 18:50:47 kernel: sdb : block size assumed to be 512 bytes, disk size 1GB.
Jan 23 18:50:47 kernel: sdb: Write Protect is on
Jan 23 18:50:47 kernel: /dev/scsi/host1/bus0/target0/lun0: I/O error: dev 08:10, sector 0
Jan 23 18:50:47 kernel: I/O error: dev 08:10, sector 0
Jan 23 18:50:47 kernel: unable to read partition table
Jan 23 18:50:47 kernel: I/O error: dev 08:10, sector 0
Jan 23 18:50:47 nmbd[163]: [2010/01/23 18:50:47, 0] lib/util_unistr.c:load_unicode_map(435)
Jan 23 18:50:47 nmbd[163]: load_unicode_map: filename /usr/codepages/unicode_map.1251 does not exist.
Jan 23 18:50:47 smbd[165]: [2010/01/23 18:50:47, 0] lib/util_unistr.c:load_unicode_map(435)
Jan 23 18:50:47 smbd[165]: load_unicode_map: filename /usr/codepages/unicode_map.1251 does not exist.
Судя по первым строкам я не смог отключить cd-rom.
В строке, отключающей сд ром я пробовал выставлять 0 и 256, не помогло.
Так же не виду vendor id и product id.(id взял с инета.)Что не так?
У меня windows 7, гипертерминала нет.