potrebujem editovat subor ktory je umiestneny tu: /usr/local/etc/usb_modeswitch.conf
potrebujem by vyzeral takto:
Kód: Vybrať všetko
########################################################
# ZTE MF628+ (tested version from Telia / Sweden)
# ZTE MF626
# ZTE MF636 (aka "Telstra / BigPond 7.2 Mobile Card")
#
# Contributor: Joakim Wennergren
DefaultVendor= 0x19d2
DefaultProduct= 0x2000
TargetVendor= 0x19d2
TargetProduct= 0x0031
# only for reference
MessageEndpoint=0x01
MessageContent="55534243123456782000000080000c85010101180101010101000000000000"
# if that command doesn't work, try the other ("eject")
;MessageContent="5553424312345678000000000000061b000000030000000000000000000000"
Tu je nejaky podobny navod.... potreboval vy som to "prelozit do cudskej reci" = krok po kroku - co zmamenaju jednotlive prikazi
Kód: Vybrať všetko
mkdir /tmp/opt
mount -obind /tmp/opt /opt
echo "/tmp/opt/*" >> /usr/local/.files
echo "mount -obind /tmp/opt /opt" >> /usr/local/sbin/post-boot
echo "/opt/bin/usb_modeswitch" >> /usr/local/sbin/post-boot
ipkg.sh update
ipkg.sh install ipkg-opt
ipkg update
ipkg install libusb
cp /tmp/mount/disc0_1/path_to_usb_modeswitch/usb_modeswitch /opt/bin/usb_modeswitch
touch /opt/etc/usb_modeswitch.conf
echo "DefaultVendor= 0x05c6" >> /opt/etc/usb_modeswitch.conf
echo "DefaultProduct= 0x1000" >> /opt/etc/usb_modeswitch.conf
echo "TargetVendor= 0x16d5" >> /opt/etc/usb_modeswitch.conf
echo "TargetProduct= 0x6502" >> /opt/etc/usb_modeswitch.conf
echo "MessageEndpoint=0x00000008" >> /opt/etc/usb_modeswitch.conf
echo "MessageContent="5553424328932a86000000000000061b000000020000000000000000000000"" >> /opt/etc/usb_modeswitch.conf
flashfs save && flashfs commit && flashfs enable