1 2 3 4 5 6 7
#!/bin/sh arch=$(uname -m) if [ "$arch" = "arc" ]; then poweroff else /usr/bin/qmp |nc 10.0.2.2 4444 fi