comparison 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
comparison
equal deleted inserted replaced
1630:b735ed134662 1631:35c626c06dd5
1 ROOTPWD=$(pwd);
2 IP=$(ifconfig en0 | awk '{if($0~"inet "){print $2}}');
3
4 user=$(whoami);
5
6 systemStarup='/Library/LaunchDaemons';
7 localStartup=${ROOTPWD}'/local/startup';
8 startup=${ROOTPWD}'/startup';
9
10 SLAVE_IP=$(dig +short "test.luan.software");
11
12 function cleanUp() {
13 find $localStartup -type f \( -name "*.plist" \) -delete;
14 }