historical/m0-applesillicon.git/xnu-qemu-arm64-5.1.0/scripts/hxtool

25 lines
335 B
Text
Raw Normal View History

2024-01-16 17:20:27 +00:00
#!/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