historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/scripts/hxtool
2024-01-16 11:20:27 -06:00

24 lines
335 B
Bash

#!/bin/sh
hxtoh()
{
flag=1
while read -r str; do
case $str in
HXCOMM*)
;;
SRST*|ERST*) flag=$(($flag^1))
;;
*)
test $flag -eq 1 && printf "%s\n" "$str"
;;
esac
done
}
case "$1" in
"-h") hxtoh ;;
*) exit 1 ;;
esac
exit 0