Skip to content

Instantly share code, notes, and snippets.

View goura's full-sized avatar

Kazuhiro Ogura goura

  • HENNGE
  • Tokyo, Japan
View GitHub Profile
@j3tm0t0
j3tm0t0 / connect_air.sh
Last active April 13, 2018 15:53
SORACOM Air + FS01BU or AK-020 を、Raspberry Pi や Intel Edison (debianインストール&USB-OTGケーブルで接続) で使用するための接続スクリプト(要: wvdial / usb-modeswitch)と、init用スクリプト by dietposter
#!/bin/bash
init_fs01bu()
{
usb_modeswitch -t <<EOF
DefaultVendor= 0x$1
DefaultProduct= 0x$2
TargetVendor= 0x$3
TargetProduct= 0x$4
MessageEndpoint= not set
MessageContent="55534243123456780000000080000606f50402527000000000000000000000"