Skip to content

Instantly share code, notes, and snippets.

@simplymathematics
Last active October 3, 2018 23:32
Show Gist options
  • Save simplymathematics/46014e948c0850a084db8fd343acfa08 to your computer and use it in GitHub Desktop.
Save simplymathematics/46014e948c0850a084db8fd343acfa08 to your computer and use it in GitHub Desktop.

From develop branch of lime-sdk:

sudo apt install gawk subversion
git clone https://github.com/libremesh/lime-sdk  
cd lime-sdk  
./cooker -d <target>  
./cooker -f   
./cooker -b <target>  
./cooker -c <target> --flavor=<flavor>  
dd if=/path/to/img of=/dev/sdX  status=progress

To set ip address from console:

uci set network.lan.ipaddr= 192.168.X.Y 
uci commit  
/etc/init.d/network restart  

From netlink.c documentation:

ip -s -s link list

From darkdrgn2k:

cat /proc/net/dev

A script for parsing RSSI on wireless interface (thanks @darkdrgn2k):

cat << 'EOF' > /tmp/mesh.awk 
$1 == "Station" {
    MAC = $2
}
$1 == "signal" {
    wifi[MAC]["signal"] = $3
}
$1 == "mesh" && $2 == "plink:" {
    wifi[MAC]["status"] = $3
}
END {
    for (w in wifi) {
        printf "%s %s",w,wifi[w]["signal"]
    }
}

Needs:

  • Can grab libremap-agent data re: transmitter, neighbors, RSSI
  • Need Tx Power and Noise Floor
  • Figure out gps from libre-map-location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment