From 824a9c5ecd628f833749aa547e982e7376260ac2 Mon Sep 17 00:00:00 2001 From: Daniel Markstedt Date: Mon, 6 Dec 2021 18:41:46 -0800 Subject: [PATCH] Bump to Macproxy release 21.12.1 (#509) * Bump Macproxy version to 21.12.1 * Add functions for starting and stopping macproxy service; rename start script * Remove superfluous step * Fix bugs --- easyinstall.sh | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/easyinstall.sh b/easyinstall.sh index fc573093..e0ff912f 100755 --- a/easyinstall.sh +++ b/easyinstall.sh @@ -317,6 +317,13 @@ function stopRaScsiScreen() { fi } +# Stops the macproxy service if it is running +function stopMacproxy() { + if [ -f "$SYSTEMD_PATH/macproxy.service" ]; then + sudo systemctl stop macproxy.service + fi +} + # Starts the monitor_rascsi service if installed function startRaScsiScreen() { if [ -f "$SYSTEMD_PATH/monitor_rascsi.service" ]; then @@ -325,6 +332,14 @@ function startRaScsiScreen() { fi } +# Starts the macproxy service if installed +function startMacproxy() { + if [ -f "$SYSTEMD_PATH/macproxy.service" ]; then + sudo systemctl start macproxy.service + showMacproxyStatus + fi +} + # Shows status for the rascsi service function showRaScsiStatus() { systemctl status rascsi | tee @@ -340,6 +355,11 @@ function showRaScsiScreenStatus() { systemctl status monitor_rascsi | tee } +# Shows status for the macproxy service +function showMacproxyStatus() { + systemctl status macproxy | tee +} + # Creates a drive image file with specific parameters function createDrive600MB() { createDrive 600 "HD600" @@ -672,23 +692,23 @@ function installMacproxy { ( sudo apt-get update && sudo apt-get install python3 python3-venv --assume-yes )