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/bash | |
| if [ $# -ne 1 ] ; then | |
| echo "Syntax: $0 [project_name]" | |
| exit 1 | |
| fi | |
| if [ ! -d "$1" ]; then | |
| echo 'The specified folder does not exist' | |
| exit 1 |
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/bash | |
| if [ $# -ne 1 ] ; then | |
| echo "Syntax: $0 [project_name]" | |
| exit 1 | |
| fi | |
| if [ ! -d "$1" ]; then | |
| echo 'The specified folder does not exist' | |
| exit 1 |
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/bash | |
| if test "$#" -ne 1; then | |
| echo "Syntax: $0 [input_file]" | |
| exit 1 | |
| fi | |
| if [ ! -f "$1" ]; then | |
| echo "Input file not found!" | |
| exit 1 |
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/bash | |
| # Path to your CD-ROM image | |
| CDROM_IMAGE="$1" | |
| # Send commands to QEMU monitor socket | |
| send_monitor_command() { | |
| printf "$1\n" | nc -U /tmp/qemu-monitor.sock | |
| } |
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/bash | |
| if [ $# -ne 2 ] ; then | |
| echo "Syntax: $0 [project_name] [should_build = 0 | 1]" | |
| exit 1 | |
| fi | |
| if [ ! -d "$1" ]; then | |
| echo 'The specified project folder does not exist' | |
| exit 1 |
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/bash | |
| QEMU_SOCKET="/tmp/qemu-monitor.sock" | |
| check_qemu_process() { | |
| pgrep -f "qemu-system-ppc.*mac99" > /dev/null | |
| } | |
| check_monitor_socket() { | |
| [ -S "$QEMU_SOCKET" ] && echo "info status" | nc -U -w 1 "$QEMU_SOCKET" > /dev/null 2>&1 |
OlderNewer