Just pop this into your OTA.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
#set -x | |
hex2bin(){ local i; for i in $(echo -n "${1}" | fold -w2); do printf '%b' "\0$(printf '%o' "0x${i}")"; done; } | |
#hex2bin(){ echo -n "${1}" | fold -w2 | xargs -I@ -- printf '\x@'; } | |
#hex2bin(){ local i; for i in $(seq 0 2 $((${#1}-1))); do printf "\x${1:${i}:2}"; done; } | |
usage(){ echo "${0##*/} [-l local_port] [-h stuh_server_host] [-p stun_server_port]"; exit 1; } | |
#_awk="$(command -v gawk || command -v awk)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -ex | |
_head="$(git rev-parse --abbrev-ref HEAD)" | |
git checkout "$(git log --format=oneline "${_head}" | awk '/ gmscompat: / {print $1}' | tac | head -n1)^" | |
for i in $(git log --format=oneline "${_head}" | awk '/ gmscompat: / {print $1}' | tac); do # | xargs -n1 -- git cherry-pick -n | |
git cherry-pick -n "${i}" || git mergetool | |
done | |
git commit -m 'squashed gmscompat patch' |