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 )