diff host/startupScripts.sh @ 1631:35c626c06dd5

add startup scripts for mac os
author fffilimonov
date Mon, 13 Dec 2021 09:14:52 +0000
parents
children 0344a535b1db
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/host/startupScripts.sh	Mon Dec 13 09:14:52 2021 +0000
@@ -0,0 +1,14 @@
+ROOTPWD=$(pwd);
+IP=$(ifconfig en0 | awk '{if($0~"inet "){print $2}}');
+
+user=$(whoami);
+
+systemStarup='/Library/LaunchDaemons';
+localStartup=${ROOTPWD}'/local/startup';
+startup=${ROOTPWD}'/startup';
+
+SLAVE_IP=$(dig +short "test.luan.software");
+
+function cleanUp() {
+  find $localStartup -type f \( -name "*.plist" \) -delete;
+}