view 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 source

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;
}